-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
45 lines (43 loc) · 1.34 KB
/
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
45
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import store from './store';
import StackNavigator from "./StackNavigator"
import {Provider} from "react-redux";
import {setCustomText,setCustomTextInput} from 'react-native-global-props';
import { BalsamiqSans_400Regular,BalsamiqSans_400Regular_Italic,BalsamiqSans_700Bold,BalsamiqSans_700Bold_Italic} from '@expo-google-fonts/balsamiq-sans'
import {useFonts} from 'expo-font'
import AppLoading from 'expo-app-loading'
import { NavigationContainer } from '@react-navigation/native';
export default function App() {
let[fontsLoaded,error]=useFonts({
BalsamiqSans_400Regular,BalsamiqSans_400Regular_Italic,BalsamiqSans_700Bold,BalsamiqSans_700Bold_Italic
})
if (!fontsLoaded){return<AppLoading/>}
const customTextInputProps = {
underlineColorAndroid: 'rgba(0,0,0,0)',
style: {
borderWidth: 0,
borderBottomWidth: 1,
borderColor: 'gray',
paddingVertical: 5,
fontSize:20,
}
};
const customTextProps = {
style: {
color:"#000",
fontSize: 25,
fontFamily:'BalsamiqSans_400Regular',
}
};
setCustomTextInput(customTextInputProps);
setCustomText(customTextProps);
return (
<Provider store={store}>
<NavigationContainer>
<StackNavigator></StackNavigator>
</NavigationContainer>
<StatusBar style="auto" />
</Provider>
);
}