DEV Community

Discussion on: Step 1: Setting up React Native with Storybook

Collapse
 
ugglr profile image
Carl-W

I would suggest doing something like this in your entry file:

const useStorybook = {set this in some config file} <Boolean>

const App = () => useStorybook ? <Storybook /> : <Application />

AppRegistry.registerComponent(appName, () => App);

Enter fullscreen mode Exit fullscreen mode