-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
35 lines (33 loc) · 800 Bytes
/
App.tsx
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
/* eslint-disable prettier/prettier */
import React, {useEffect} from 'react';
import {extendTheme, NativeBaseProvider} from 'native-base';
import Main from './src/Main';
import SplashScreen from 'react-native-splash-screen';
export default function App() {
const theme = extendTheme({
colors: {
// Add new color
primary: {
100: '#05BC61',
},
// Redefining only one shade, rest of the color will remain same.
amber: {
400: '#d97706',
},
},
config: {
// Changing initialColorMode to 'dark'
initialColorMode: 'dark',
},
});
useEffect(() => {
setTimeout(() => {
SplashScreen.hide();
}, 1000);
}, []);
return (
<NativeBaseProvider theme={theme}>
<Main />
</NativeBaseProvider>
);
}