2022-08-19 19:53:40 +00:00
|
|
|
import { getStorybookUI } from '@storybook/react-native';
|
|
|
|
import './storybook.requires';
|
|
|
|
|
|
|
|
import RNBootSplash from 'react-native-bootsplash';
|
|
|
|
|
|
|
|
import { selectServerRequest } from '../app/actions/server';
|
|
|
|
import { mockedStore as store } from '../app/reducers/mockedStore';
|
|
|
|
import database from '../app/lib/database';
|
2022-09-29 19:42:04 +00:00
|
|
|
import { setUser } from '../app/actions/login';
|
2022-08-19 19:53:40 +00:00
|
|
|
|
|
|
|
RNBootSplash.hide();
|
|
|
|
|
|
|
|
const baseUrl = 'https://open.rocket.chat';
|
|
|
|
store.dispatch(selectServerRequest(baseUrl));
|
2022-09-29 19:42:04 +00:00
|
|
|
store.dispatch(setUser({ id: 'abc', username: 'rocket.cat', name: 'Rocket Cat' }));
|
2022-08-19 19:53:40 +00:00
|
|
|
database.setActiveDB(baseUrl);
|
|
|
|
|
|
|
|
const StorybookUIRoot = getStorybookUI({});
|
|
|
|
export default StorybookUIRoot;
|