Removed console.log for more performance

This commit is contained in:
keplyx 2020-02-02 19:32:43 +01:00
parent 99eff7ebf5
commit c3c99fbe3b
3 changed files with 0 additions and 10 deletions

7
App.js
View file

@ -49,12 +49,9 @@ export default class App extends React.Component<Props, State> {
setupStatusBar() {
if (Platform.OS === 'ios') {
console.log(ThemeManager.getNightMode());
if (ThemeManager.getNightMode()) {
console.log('setting light mode');
StatusBar.setBarStyle('light-content', true);
} else {
console.log('setting dark mode');
StatusBar.setBarStyle('dark-content', true);
}
}
@ -73,7 +70,6 @@ export default class App extends React.Component<Props, State> {
}
async loadAssetsAsync() {
console.log('Starting loading assets...');
// Wait for custom fonts to be loaded before showing the app
await Font.loadAsync({
'Roboto': require('native-base/Fonts/Roboto.ttf'),
@ -83,18 +79,15 @@ export default class App extends React.Component<Props, State> {
await AsyncStorageManager.getInstance().loadPreferences();
ThemeManager.getInstance().setUpdateThemeCallback(() => this.updateTheme());
await NotificationsManager.initExpoToken();
// console.log(AsyncStorageManager.getInstance().preferences.expoToken.current);
}
onLoadFinished() {
// Only show intro if this is the first time starting the app
console.log('Finished loading');
this.setState({
isLoading: false,
currentTheme: ThemeManager.getCurrentTheme(),
showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate5.current === '1'
// showIntro: true
});
// Status bar goes dark if set too fast
setTimeout(this.setupStatusBar,

View file

@ -319,14 +319,12 @@ export default class AboutScreen extends React.Component<Props, State> {
tryUnlockDebugMode() {
this.debugTapCounter = this.debugTapCounter + 1;
console.log(this.debugTapCounter);
if (this.debugTapCounter >= 4) {
this.unlockDebugMode();
}
}
unlockDebugMode() {
console.log('unlocked');
this.setState({isDebugUnlocked: true});
let key = AsyncStorageManager.getInstance().preferences.debugUnlocked.key;
AsyncStorageManager.getInstance().savePref(key, '1');

View file

@ -83,7 +83,6 @@ export default class DebugScreen extends React.Component<Props, State> {
alertCurrentExpoToken() {
let token = AsyncStorageManager.getInstance().preferences.expoToken.current;
console.log(token);
Alert.alert(
'Expo Token',
token,