UNPKG

@kadira/react-native-storybook

Version:

A better way to develop React Native Components for your app

215 lines (114 loc) 6.81 kB
# CHANGELOG ## v2.2.4 * Fix build issue with RN v0.42 [#PR128](https://github.com/storybooks/react-native-storybook/pull/128) and [#PR129](https://github.com/storybooks/react-native-storybook/pull/129) ## v2.2.3 * Support React Native v0.42 [PR #126](https://github.com/kadirahq/react-native-storybook/pull/126). ## v2.2.2 * Load .babelrc from project root directory [PR #125](https://github.com/kadirahq/react-native-storybook/pull/123). ## v2.2.1 * Support React Native v0.41 [PR #121](https://github.com/kadirahq/react-native-storybook/pull/121). ## v2.2.0 * Support React Native v0.39 [PR #114](https://github.com/kadirahq/react-native-storybook/pull/114). * Support custom express middleware [PR #115](https://github.com/kadirahq/react-native-storybook/pull/115). ## v2.1.7 * Support React Native v0.37 [PR #112](https://github.com/kadirahq/react-native-storybook/pull/112). ## v2.1.6 * Show help message on device if no story is selected [PR #111](https://github.com/kadirahq/react-native-storybook/pull/111). ## v2.1.5 * Support React Native v0.36 [PR #106](https://github.com/kadirahq/react-native-storybook/pull/106). ## v2.1.4 * Make sure that when a story is selected the previous story is completely unmounted and new story is mounted [PR #104](https://github.com/kadirahq/react-native-storybook/pull/104). ## v2.1.3 * Support React Native v0.34 [PR #102](https://github.com/kadirahq/react-native-storybook/pull/102). ## v2.1.2 * Fix bug where context object is missing [PR #83](https://github.com/kadirahq/react-native-storybook/pull/83). ## v2.1.1 * Support React Native v0.33 [PR #71](https://github.com/kadirahq/react-native-storybook/pull/71). ## v2.1.0 * Remove `/dist` directory from the repo * Support custom preview addons [PR #68](https://github.com/kadirahq/react-native-storybook/pull/68). ## v2.0.2 * Use 7007 as the default port (use in getstorybook tool) [PR #64](https://github.com/kadirahq/react-native-storybook/pull/64). * Support React Native v0.32 [PR #65](https://github.com/kadirahq/react-native-storybook/pull/65). ## v2.0.1 * Fix storyFn prop validation [PR #59](https://github.com/kadirahq/react-native-storybook/pull/59). * Support older versions of react-native module [PR #60](https://github.com/kadirahq/react-native-storybook/pull/60). ## v2.0.0 **Rewrite the backend to support new UI and addons** * Use webpack dev middleware to serve storybook UI instead of prebuilt manager.js * Advanced config API is removed (UI customizations can be done with addons easily) * Removed custom channels and preview modules (moved to separate addons) ## v1.12.6 * Support react native versions 0.27.0 to 0.31.x ## v1.12.5 * Support react native versions 0.27.0 to 0.30.x [PR #55](https://github.com/kadirahq/react-native-storybook/pull/55). ## v1.12.3 * Use channel modules [PR #52](https://github.com/kadirahq/react-native-storybook/pull/52). ## v1.12.2 * Make the `module` argument optional * Remove unnecessary console.log statement ## v1.12.1 * Disable react warnings (these should be handled in storybook-ui repo) ## v1.12.0 * Add qr-code preview option [PR #49](https://github.com/kadirahq/react-native-storybook/pull/49). ## v1.11.3 * Make `addDecorator` return `this` to make it chainable [PR #47](https://github.com/kadirahq/react-native-storybook/pull/47). ## v1.11.2 * Get rid of the 'unique key prop' warning ## v1.11.1 * Add missing imports for `storybook build` command ## v1.11.0 * Rewrite most of the code to avoid unnecessary event emitters * Improve code organization and haow it handles storybook config * Implement `linkTo` feature. ## v1.10.1 * Tweak appetize.io preview (remove frame and autoplay) ## v1.10.0 * Remove android build from the build command [PR #41](https://github.com/kadirahq/react-native-storybook/pull/41). ## v1.9.0 * Abstract the communication layer (as "channels") and add firebase support * Add in-browser preview with appetize * Add storybook favicon ## v1.8.0 * Introduce getStorybookUI method to get the UI component class. ## v1.7.2 * Update README related to HMR usage. ## v1.7.1 * Make the getting started process simple. ## v1.7.0 - Minify the manager build to around 350 KB with UglifyJs support. ## v1.6.0 - Add run-ios command [PR #27](https://github.com/kadirahq/react-native-storybook/pull/27). ## v1.5.0 - Pass the context variable [PR #26](https://github.com/kadirahq/react-native-storybook/pull/26). ## v1.4.0 - Implement action logger feature [PR #25](https://github.com/kadirahq/react-native-storybook/pull/25). ## v1.3.0 - Implement decorators feature [PR #24](https://github.com/kadirahq/react-native-storybook/pull/24). ## v1.2.1 - Fix bug where web UI crashes when starting with selection query params [PR #21](https://github.com/kadirahq/react-native-storybook/pull/21). ## v1.2.0 - Support addons [PR #20](https://github.com/kadirahq/react-native-storybook/pull/20). ## v1.1.4 - Add missing `module` argument to template [PR #18](https://github.com/kadirahq/react-native-storybook/pull/18). ## v1.1.3 - Remove socket.io and use plain Websockets [PR #17](https://github.com/kadirahq/react-native-storybook/pull/17). Removes JS debugging requirement. ## v1.1.2 - Partially fix hot module reloading [Issue #8](https://github.com/kadirahq/react-native-storybook/issues/8) with [PR #10](https://github.com/kadirahq/react-native-storybook/pull/10) ## v1.1.1 - Build source files and write README ## v1.1.0 - Replace `PreviewContainer` with `PreviewComponent` where the host and port are configurable ## v1.0.4 - Fix socket.io by using a patched socket.io temporarily [PR #2](https://github.com/kadirahq/react-native-storybook/pull/2) ## v1.0.3 - Fix `window.navigator.userAgent` related issue with socket.io [Issue #1](https://github.com/kadirahq/react-native-storybook/issues/1) ## v1.0.2 - Rename storybook command file from `cli.js` to `storybook.js` ## v1.0.1 - Add missing dependency `commander` to package.json file ## v1.0.0 This is the initial non-poc release of `react-native-storybook`. With this release, users can write stories and check them using an ios-simulator. The address of the storybook `localhost:9001` is hardcoded so for now it does not work on real devices or the android simulator. Also it is not contributor friendly. When used with `npm link`, the node_modules directory should be removed when using the ios simulator. - Support ability to write stories using `storiesOf` and `add` without using decorators or addons - The storybook can be started with `storybook start -h localhost -p 9001` although the port and host should be as given in this example - The story preview device can be started with the `react-native run-ios` command but the apps `index.*.js` must be edited (for now)