-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (34 loc) · 925 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { NavigationContainer } from '@react-navigation/native';
import { useFonts } from 'expo-font';
import { Provider } from 'react-redux';
import { store } from './src/redux/reduxStore';
import Screens from './src/screens/Screens';
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
import { LogBox } from 'react-native';
LogBox.ignoreLogs(['Warning: ...']);
export default function App() {
const [fontsLoaded] = useFonts({
Kanit: require('./assets/Kanit-Regular.ttf')
})
if (!fontsLoaded) {
return null;
}
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: '#000',
accent: '#f1c40f',
},
};
return (
<Provider store={store}>
<PaperProvider theme={theme}>
<NavigationContainer>
<Screens />
</NavigationContainer>
</PaperProvider>
</Provider>
);
}