Browse Source

fix:remove unused code

master
farhantock 4 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 { name as appName } from './app.json';
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.ignoreAllLogs();
const theme = {
...MD3LightTheme,
roundness: 2,
myOwnProperty: true,
colors: {
...MD3LightTheme.colors,
primary: '#303F9F',
secondary: '#5E5C71',
tertiary: '#EF6262',
danger: '#EF6262',
},
};
export default function Main() {
return (
<PaperProvider theme={theme}>
<PaperProvider>
<App />
</PaperProvider>
);

4
src/App.js

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

Loading…
Cancel
Save