diff --git a/App.js b/App.js index 5ebd217..ad94488 100644 --- a/App.js +++ b/App.js @@ -12,7 +12,6 @@ import {createStackNavigator} from '@react-navigation/stack'; import DrawerNavigator from './navigation/DrawerNavigator'; import NotificationsManager from "./utils/NotificationsManager"; import {Provider as PaperProvider} from 'react-native-paper'; -import AprilFoolsManager from "./utils/AprilFoolsManager"; type Props = {}; @@ -20,7 +19,6 @@ type State = { isLoading: boolean, showIntro: boolean, showUpdate: boolean, - showAprilFools: boolean, currentTheme: ?Object, }; @@ -32,7 +30,6 @@ export default class App extends React.Component { isLoading: true, showIntro: true, showUpdate: true, - showAprilFools: false, currentTheme: null, }; @@ -74,11 +71,9 @@ export default class App extends React.Component { this.setState({ showIntro: false, showUpdate: false, - showAprilFools: false, }); AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0'); AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate5.key, '0'); - AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showAprilFoolsStart.key, '0'); } async componentDidMount() { @@ -89,7 +84,7 @@ export default class App extends React.Component { // Wait for custom fonts to be loaded before showing the app await AsyncStorageManager.getInstance().loadPreferences(); ThemeManager.getInstance().setUpdateThemeCallback(this.onUpdateTheme); - // await NotificationsManager.initExpoToken(); + await NotificationsManager.initExpoToken(); this.onLoadFinished(); } @@ -101,7 +96,6 @@ export default class App extends React.Component { currentTheme: ThemeManager.getCurrentTheme(), showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1', showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate5.current === '1', - showAprilFools: AprilFoolsManager.getInstance().isAprilFoolsEnabled() && AsyncStorageManager.getInstance().preferences.showAprilFoolsStart.current === '1', }); // Status bar goes dark if set too fast setTimeout(this.setupStatusBar, 1000); @@ -114,11 +108,10 @@ export default class App extends React.Component { render() { if (this.state.isLoading) { return null; - } else if (this.state.showIntro || this.state.showUpdate || this.state.showAprilFools) { + } else if (this.state.showIntro || this.state.showUpdate) { return ; } else { return ( diff --git a/components/CustomIntroSlider.js b/components/CustomIntroSlider.js index 47a467f..261cd6e 100644 --- a/components/CustomIntroSlider.js +++ b/components/CustomIntroSlider.js @@ -40,14 +40,12 @@ const styles = StyleSheet.create({ type Props = { onDone: Function, isUpdate: boolean, - isAprilFools: boolean, }; export default class CustomIntroSlider extends React.Component { introSlides: Array; updateSlides: Array; - aprilFoolsSlides: Array; constructor() { super(); @@ -111,15 +109,6 @@ export default class CustomIntroSlider extends React.Component { colors: ['#e01928', '#be1522'], }, ]; - this.aprilFoolsSlides = [ - { - key: '1', - title: i18n.t('intro.aprilFoolsSlide.title'), - text: i18n.t('intro.aprilFoolsSlide.text'), - icon: 'fish', - colors: ['#e01928', '#be1522'], - }, - ]; } @@ -158,8 +147,6 @@ export default class CustomIntroSlider extends React.Component { let slides = this.introSlides; if (this.props.isUpdate) slides = this.updateSlides; - else if (this.props.isAprilFools) - slides = this.aprilFoolsSlides; return (