v8.3.0-alpha.0
Pre-releaseWhats 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
- feat/v7 store7 by @dannyhw in #509
- feat/server v7 by @dannyhw in #530
- Feat/v8 UI by @dannyhw in #564
- chore/check v8 2 by @dannyhw in #584
- Fix: Update README.md by @exzos28 in #589
- fix: Fixed typo in MIGRATION.md by @gkopylovdev in #593
- chore: fix workspace dev script by @fabioatcorreia in #591
- fix: CalledPreviewMethodBeforeInitializationError (8.2) by @stevoland in #587
New Contributors
- @exzos28 made their first contribution in #589
- @gkopylovdev made their first contribution in #593
- @fabioatcorreia made their first contribution in #591
Full Changelog: v7.6.20...v8.3.0-alpha.0