-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.js
44 lines (39 loc) · 1013 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
41
42
43
44
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import RouteWrapper from './src/navigation';
import {Provider} from 'react-redux';
import rootStore from './src/redux/store';
import {setCustomText, setCustomTextInput} from 'react-native-global-props';
import {PersistGate} from 'redux-persist/integration/react';
import {
AppearanceProvider,
Appearance,
useColorScheme,
} from 'react-native-appearance';
Appearance.getColorScheme();
const App = () => {
const customTextProps = {
style: {
fontFamily: 'Montserrat-Regular',
},
};
setCustomText(customTextProps);
setCustomTextInput(customTextProps);
const {store, persistor} = rootStore();
return (
<AppearanceProvider>
<Provider store={store}>
<PersistGate persistor={persistor}>
<RouteWrapper loading={null} />
</PersistGate>
</Provider>
</AppearanceProvider>
);
};
export default App;