-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (30 loc) · 1.03 KB
/
index.js
File metadata and controls
36 lines (30 loc) · 1.03 KB
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
/**
* @format
*/
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
import { PaperProvider, DefaultTheme } from 'react-native-paper'
import { fonts } from './src/styles/Fonts';
import { colors } from './src/styles/Colors';
import SystemNavigationBar from 'react-native-system-navigation-bar';
const theme = {
...DefaultTheme,
fonts: {
...DefaultTheme.fonts,
regular: { fontFamily: fonts.PoppinsRegular, fontWeight: 'normal' },
medium: { fontFamily: fonts.PoppinsMedium, fontWeight: 'normal' },
light: { fontFamily: fonts.PoppinsLight, fontWeight: '300' },
thin: { fontFamily: fonts.PoppinsExtraLight, fontWeight: '100' },
},
};
export const Main = () => {
SystemNavigationBar.navigationHide()
SystemNavigationBar.setNavigationColor(colors.secondary, 'light','both')
return (
<PaperProvider theme={theme}>
<App />
</PaperProvider>
)
}
AppRegistry.registerComponent(appName, () => Main);