2019-03-12 16:23:06 +00:00
|
|
|
import { AppRegistry } from 'react-native';
|
|
|
|
import { getStorybookUI, configure } from '@storybook/react-native'; // eslint-disable-line
|
|
|
|
|
2019-12-17 14:08:06 +00:00
|
|
|
import RNBootSplash from 'react-native-bootsplash';
|
2019-05-22 20:15:35 +00:00
|
|
|
import 'react-native-gesture-handler';
|
2019-03-12 16:23:06 +00:00
|
|
|
|
2020-05-08 16:37:49 +00:00
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
jest.mock('react-native/Libraries/Components/Touchable/TouchableOpacity', () => jest.fn(() => null));
|
|
|
|
|
2019-12-17 14:08:06 +00:00
|
|
|
RNBootSplash.hide();
|
2019-03-12 16:23:06 +00:00
|
|
|
|
|
|
|
// import stories
|
|
|
|
configure(() => {
|
|
|
|
require('./stories');
|
|
|
|
}, module);
|
|
|
|
|
|
|
|
// Refer to https://github.com/storybooks/storybook/tree/master/app/react-native#start-command-parameters
|
|
|
|
// To find allowed options for getStorybookUI
|
2020-07-31 17:06:22 +00:00
|
|
|
const StorybookUIRoot = getStorybookUI({
|
|
|
|
asyncStorage: null
|
|
|
|
});
|
2019-03-12 16:23:06 +00:00
|
|
|
|
|
|
|
// If you are using React Native vanilla and after installation you don't see your app name here, write it manually.
|
|
|
|
// If you use Expo you can safely remove this line.
|
|
|
|
AppRegistry.registerComponent('RocketChatRN', () => StorybookUIRoot);
|
|
|
|
|
|
|
|
export default StorybookUIRoot;
|