forked from startach/haprev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
30 lines (27 loc) · 812 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
import { registerRootComponent } from 'expo'
import clone from 'lodash/clone'
import React from 'react'
import { I18nManager } from 'react-native'
import Nav from './src/app/App'
class App extends React.Component {
async componentWillMount () {
try {
// I18nManager.swapLeftAndRightInRTL(true)
// if (Platform.OS === "android") await I18nManager.forceRTL(true);
if (!I18nManager.isRTL) { await I18nManager.forceRTL(true) }
} catch (e) {
console.warn('RTL Error', e)
}
console.ignoredYellowBox = ['Setting a timer']
const _console = clone(console)
console.warn = message => {
if (message.indexOf('Setting a timer') <= -1) {
_console.warn(message)
}
}
}
render () {
return <Nav />
}
}
export default registerRootComponent(App)