Updated console.log usage

This commit is contained in:
Arnaud Vergnet 2020-04-28 08:24:55 +02:00
parent 987bbf9113
commit 470ec8bcdb
5 changed files with 2 additions and 7 deletions

5
App.js
View file

@ -60,7 +60,6 @@ export default class App extends React.Component<Props, State> {
constructor() {
super();
LocaleManager.initTranslations();
// SplashScreen.preventAutoHide();
this.navigatorRef = React.createRef();
this.defaultHomeRoute = null;
this.defaultHomeData = {};
@ -71,8 +70,7 @@ export default class App extends React.Component<Props, State> {
this.loadAssetsAsync().then(() => {
this.onLoadFinished();
});
// console.log(Linking.makeUrl('path/into/app', { hello: 'world', goodbye: 'now' }))
console.log(global.HermesInternal !== null);
console.log("USING HERMES:" + global.HermesInternal !== null);
}
/**
@ -176,6 +174,7 @@ export default class App extends React.Component<Props, State> {
showUpdate: this.storageManager.preferences.updateNumber.current !== Update.number.toString(),
showAprilFools: AprilFoolsManager.getInstance().isAprilFoolsEnabled() && this.storageManager.preferences.showAprilFoolsStart.current === '1',
});
console.log('hiding splash');
SplashScreen.hide();
}

View file

@ -18,7 +18,6 @@ class CustomHTML extends React.Component<Props> {
};
getBasicText = (htmlAttribs, children, convertedCSSStyles, passProps) => {
// console.log(convertedCSSStyles);
return <Text {...passProps}>{children}</Text>;
};

View file

@ -143,7 +143,6 @@ export default class ConnectionManager {
async authenticatedRequest(path: string, params: Object) {
return new Promise((resolve, reject) => {
if (this.getToken() !== null) {
// console.log(data);
let data = {
token: this.getToken(),
...params

View file

@ -18,7 +18,6 @@ export default class LocaleManager {
i18n.fallbacks = true;
i18n.translations = {fr, en};
i18n.locale = RNLocalize.findBestAvailableLanguage(["en", "fr"]).languageTag;
console.log(RNLocalize.findBestAvailableLanguage(["en", "fr"]).languageTag);
}
static getCurrentLocale() {

View file

@ -228,7 +228,6 @@ class PlanningScreen extends React.Component<Props, State> {
}
render() {
// console.log("rendering PlanningScreen");
return (
<CustomAgenda
{...this.props}