forked from startach/haprev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
30 lines (27 loc) · 815 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 React from "react";
import Nav from "./src/app/App";
import { I18nManager, Platform } from "react-native";
import clone from "lodash/clone";
export default 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);
console.log("I18nManager:", I18nManager);
} 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 />;
}
}