yarn @storybook/react-native 6.0.1-alpha.0
v6.0.1-alpha.0

latest releases: 7.6.19, 7.6.18, 8.0.0-alpha.4...
2 years ago

Features

Many of these features come from the web storybook so you can find more info by looking at the storybook documentation.

  • New story format CSF
  • Args
  • Knobs replaced by Controls
  • ondevice addons Notes, actions and backgrounds have all been updated to work for 6.0+
  • New declarative config style
  • Auto story detection built in. Including an optional watcher.
  • Overall simplified implementation

Bug fixes

  • Much less warnings when using controls (knobs replacement) - no longer using deprecated components.
  • Promises no longer break for the entire app when using storybook.
  • Weird storylist bottom margin is now gone

Breaking Changes

  • Knobs are no longer supported, use controls instead
  • storiesOf syntax is no longer recommended and you should move to CSF
  • You now require a main.js and preview.js file to configure storybook.
  • in order to resolve issues with polyfills that caused promises to break and much more you should change your metro config to include
    • resolverMainFields: ['sbmodern', 'main'] in the resolver field

See https://github.com/storybookjs/react-native/blob/next-6.0/v6README.md for a guide to try out this alpha

Don't miss a new react-native release

NewReleases is sending notifications on new releases.