Browse Source

fix:remove unused code

master
farhantock 8 months ago
parent
commit
5643de3132
  1. 17
      index.js
  2. 4
      src/App.js

17
index.js

@ -6,27 +6,16 @@ import { AppRegistry } from 'react-native';
import App from './src/App'; import App from './src/App';
import { name as appName } from './app.json'; import { name as appName } from './app.json';
import { LogBox } from 'react-native'; import { LogBox } from 'react-native';
import { MD3LightTheme, PaperProvider, useTheme } from 'react-native-paper'; import { PaperProvider, useTheme } from 'react-native-paper';
LogBox.ignoreLogs(['Warning: Failed prop type: Invalid prop `role`']); // Ignore log notification by message LogBox.ignoreLogs(['Warning: Failed prop type: Invalid prop `role`']); // Ignore log notification by message
LogBox.ignoreAllLogs(); LogBox.ignoreAllLogs();
const theme = {
...MD3LightTheme,
roundness: 2,
myOwnProperty: true,
colors: {
...MD3LightTheme.colors,
primary: '#303F9F',
secondary: '#5E5C71',
tertiary: '#EF6262',
danger: '#EF6262',
},
};
export default function Main() { export default function Main() {
return ( return (
<PaperProvider theme={theme}> <PaperProvider>
<App /> <App />
</PaperProvider> </PaperProvider>
); );

4
src/App.js

@ -9,14 +9,14 @@ 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 { toastConfig } from './utils/Toast';
import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { colors } from '../src/utils/color'
const App = () => { const App = () => {
return ( return (
<Provider store={store}> <Provider store={store}>
<PersistGate loading={ <PersistGate loading={
<View style={styles.container}> <View style={styles.container}>
<ActivityIndicator size='large' animating={true} color="#1C1B40" /> <ActivityIndicator size='large' animating={true} color={colors.blue} />
</View> </View>
} persistor={persistor}> } persistor={persistor}>
<GestureHandlerRootView style={{ flex: 1 }}> <GestureHandlerRootView style={{ flex: 1 }}>

Loading…
Cancel
Save