Skip to content

v8.3.0-alpha.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@dannyhw dannyhw released this 15 Sep 10:03
· 69 commits to next since this release

In this release the rncli issues have been resolved by providing a polyfill for URLSearchParams

Including last release notes since this one is just a small change


Whats in this release

This release includes an update to storybook 8.3 and an update to theming to match the web theme. This will break existing custom themes but makes it easier to reproduce the ui from the web version.

There is also an update to the controls addon to make the ui closer to the web version with more of a table style.

lastly for the ui side of things I've added in the dark theme again copied from the web.

Note: there are still some outstanding issues when running with react-native cli. I highly recommend using expo anyway but if you are on rncli you may need to add some polyfills for browser apis like crypto and url. I intend to remove this requirement but need to track it down.

built in websocket server

In this version there is also now a way to run the websocket server via the withStorybook metro enhancer, this is turned on by passing the websockets options. This makes it possible to control storybook on the device by sending valid storybook events without requiring the web addon addon-react-native-server.

example metro config with websockets options:

module.exports = withStorybook(defaultConfig, {
  enabled: process.env.STORYBOOK_ENABLED === 'true',
  configPath: path.resolve(__dirname, './.storybook'),
  websockets: {
    port: 7007,
    host: 'localhost',
  },
});

What's Changed

New Contributors

Full Changelog: v7.6.20...v8.3.0-alpha.0