-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
46 lines (40 loc) · 729 Bytes
/
App.js
File metadata and controls
46 lines (40 loc) · 729 Bytes
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
46
import React, { Component } from 'react'
import Main from './components/Main'
import {
View
} from 'react-native'
import {
setCustomText,
setCustomTextInput
} from 'react-native-global-props'
import theme from 'theme'
export default () => {
setCustomTextInput({
style: {
fontSize: 18,
height: 40
}
})
setCustomText({
style: {
fontSize: 18,
color: theme.palette.text
}
})
class App extends Component {
state = {
loaded: false
}
async componentWillMount () {
this.setState({ loaded: true })
}
render () {
if (!this.state.loaded) {
return <View />
} else {
return <Main />
}
}
}
return <App />
}