Browse Source

remove config toast

master
farhantock 3 months ago
parent
commit
bbdfc04e8f
  1. 3
      src/App.js

3
src/App.js

@ -7,7 +7,6 @@ import { ActivityIndicator } from 'react-native-paper';
import { persistor, store } from './appredux/store'; import { persistor, store } from './appredux/store';
import AppRoutes from './navigation/AppRoutes' import AppRoutes from './navigation/AppRoutes'
import Toast from 'react-native-toast-message'; import Toast from 'react-native-toast-message';
import { toastConfig } from './utils/Toast';
import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { colors } from '../src/utils/color' import { colors } from '../src/utils/color'
@ -21,7 +20,7 @@ const App = () => {
} persistor={persistor}> } persistor={persistor}>
<GestureHandlerRootView style={{ flex: 1 }}> <GestureHandlerRootView style={{ flex: 1 }}>
<AppRoutes /> <AppRoutes />
<Toast position='bottom' config={toastConfig} visibilityTime={5000} /> <Toast position='bottom' visibilityTime={5000} />
</GestureHandlerRootView> </GestureHandlerRootView>
</PersistGate> </PersistGate>
</Provider> </Provider>

Loading…
Cancel
Save