import React from 'react' import type { Preview } from '@storybook/react'; import { Provider } from 'react-redux'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { themes } from '../app/lib/constants'; import MessageContext from '../app/containers/message/Context'; import { selectServerRequest } from '../app/actions/server'; import { mockedStore as store } from '../app/reducers/mockedStore'; import { setUser } from '../app/actions/login'; const baseUrl = 'https://open.rocket.chat'; store.dispatch(selectServerRequest(baseUrl)); store.dispatch(setUser({ id: 'abc', username: 'rocket.cat', name: 'Rocket Cat' })); const preview: Preview = { decorators: [ (Story) => ( {}, onLongPress: () => {}, reactionInit: () => {}, onErrorPress: () => {}, replyBroadcast: () => {}, onReactionPress: () => {}, onDiscussionPress: () => {}, onReactionLongPress: () => {}, threadBadgeColor: themes.light.tunreadColor }} > ), ] }; export default preview;