From 5643de3132054e7dd8d6660d540be9b8ab3b3f75 Mon Sep 17 00:00:00 2001 From: farhantock Date: Wed, 15 May 2024 19:19:29 +0700 Subject: [PATCH] fix:remove unused code --- index.js | 17 +++-------------- src/App.js | 4 ++-- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/index.js b/index.js index 5b2ce6d..b99d497 100644 --- a/index.js +++ b/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 ( - + ); diff --git a/src/App.js b/src/App.js index cc52686..88fbf9a 100644 --- a/src/App.js +++ b/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 ( - + } persistor={persistor}>