forked from vergnet/application-amicale
Updated console.log usage
This commit is contained in:
parent
987bbf9113
commit
470ec8bcdb
5 changed files with 2 additions and 7 deletions
5
App.js
5
App.js
|
@ -60,7 +60,6 @@ export default class App extends React.Component<Props, State> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
LocaleManager.initTranslations();
|
LocaleManager.initTranslations();
|
||||||
// SplashScreen.preventAutoHide();
|
|
||||||
this.navigatorRef = React.createRef();
|
this.navigatorRef = React.createRef();
|
||||||
this.defaultHomeRoute = null;
|
this.defaultHomeRoute = null;
|
||||||
this.defaultHomeData = {};
|
this.defaultHomeData = {};
|
||||||
|
@ -71,8 +70,7 @@ export default class App extends React.Component<Props, State> {
|
||||||
this.loadAssetsAsync().then(() => {
|
this.loadAssetsAsync().then(() => {
|
||||||
this.onLoadFinished();
|
this.onLoadFinished();
|
||||||
});
|
});
|
||||||
// console.log(Linking.makeUrl('path/into/app', { hello: 'world', goodbye: 'now' }))
|
console.log("USING HERMES:" + global.HermesInternal !== null);
|
||||||
console.log(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(),
|
showUpdate: this.storageManager.preferences.updateNumber.current !== Update.number.toString(),
|
||||||
showAprilFools: AprilFoolsManager.getInstance().isAprilFoolsEnabled() && this.storageManager.preferences.showAprilFoolsStart.current === '1',
|
showAprilFools: AprilFoolsManager.getInstance().isAprilFoolsEnabled() && this.storageManager.preferences.showAprilFoolsStart.current === '1',
|
||||||
});
|
});
|
||||||
|
console.log('hiding splash');
|
||||||
SplashScreen.hide();
|
SplashScreen.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ class CustomHTML extends React.Component<Props> {
|
||||||
};
|
};
|
||||||
|
|
||||||
getBasicText = (htmlAttribs, children, convertedCSSStyles, passProps) => {
|
getBasicText = (htmlAttribs, children, convertedCSSStyles, passProps) => {
|
||||||
// console.log(convertedCSSStyles);
|
|
||||||
return <Text {...passProps}>{children}</Text>;
|
return <Text {...passProps}>{children}</Text>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,6 @@ export default class ConnectionManager {
|
||||||
async authenticatedRequest(path: string, params: Object) {
|
async authenticatedRequest(path: string, params: Object) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (this.getToken() !== null) {
|
if (this.getToken() !== null) {
|
||||||
// console.log(data);
|
|
||||||
let data = {
|
let data = {
|
||||||
token: this.getToken(),
|
token: this.getToken(),
|
||||||
...params
|
...params
|
||||||
|
|
|
@ -18,7 +18,6 @@ export default class LocaleManager {
|
||||||
i18n.fallbacks = true;
|
i18n.fallbacks = true;
|
||||||
i18n.translations = {fr, en};
|
i18n.translations = {fr, en};
|
||||||
i18n.locale = RNLocalize.findBestAvailableLanguage(["en", "fr"]).languageTag;
|
i18n.locale = RNLocalize.findBestAvailableLanguage(["en", "fr"]).languageTag;
|
||||||
console.log(RNLocalize.findBestAvailableLanguage(["en", "fr"]).languageTag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static getCurrentLocale() {
|
static getCurrentLocale() {
|
||||||
|
|
|
@ -228,7 +228,6 @@ class PlanningScreen extends React.Component<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// console.log("rendering PlanningScreen");
|
|
||||||
return (
|
return (
|
||||||
<CustomAgenda
|
<CustomAgenda
|
||||||
{...this.props}
|
{...this.props}
|
||||||
|
|
Loading…
Reference in a new issue