We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1af190 commit d270b24Copy full SHA for d270b24
index.js
@@ -5,8 +5,10 @@ import { AppRegistry, LogBox } from 'react-native';
5
import { name as appName } from './app.json';
6
import { isAndroid } from './app/lib/methods/helpers';
7
8
+const StorybookModule = require('./.rnstorybook/index');
9
+
10
if (process.env.USE_STORYBOOK) {
- AppRegistry.registerComponent(appName, () => require('./.rnstorybook/index').default);
11
+ AppRegistry.registerComponent(appName, () => require('./.rnstorybook/index').default ?? StorybookModule);
12
} else {
13
if (!__DEV__) {
14
console.log = () => {};
0 commit comments