Skip to content

Commit

Permalink
remove legacy splash-screen related code
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid committed May 11, 2021
1 parent 3819593 commit 2e07bba
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 50 deletions.
16 changes: 0 additions & 16 deletions android/app/src/main/java/com/emurgo/SplashActivity.java

This file was deleted.

1 change: 1 addition & 0 deletions android/app/src/main/res/values/styles.xml
Expand Up @@ -9,6 +9,7 @@
<!-- react-native-bootsplash -->
<style name="BootTheme" parent="AppTheme">
<item name="android:background">@drawable/bootsplash</item>
<item name="android:statusBarColor">@color/PRIMARY_BLUE</item>
</style>

</resources>
16 changes: 0 additions & 16 deletions src/AppNavigator.js
Expand Up @@ -8,7 +8,6 @@ import {isEmpty} from 'lodash'

import {CONFIG} from './config/config'
import {
isAppInitializedSelector,
isMaintenanceSelector,
isSystemAuthEnabledSelector,
isAuthenticatedSelector,
Expand All @@ -20,7 +19,6 @@ import WalletInitNavigator from './components/WalletInit/WalletInitNavigator'
import FirstRunNavigator from './components/FirstRun/FirstRunNavigator'
import IndexScreen from './components/IndexScreen'
import StorybookScreen from './components/StorybookScreen'
import SplashScreen from './components/SplashScreen'
import MaintenanceScreen from './components/MaintenanceScreen'
import {ROOT_ROUTES} from './RoutesList'
import BiometricAuthScreen from './components/Send/BiometricAuthScreen'
Expand All @@ -44,7 +42,6 @@ const IS_STORYBOOK = env.getBoolean('IS_STORYBOOK', false)

const hasAnyWalletSelector = (state: State): boolean => !isEmpty(state.wallets)
type NavigatorSwitchProps = {|
isAppInitialized: boolean,
isMaintenance: boolean,
isSystemAuthEnabled: boolean,
isAuthenticated: boolean,
Expand All @@ -58,7 +55,6 @@ const Stack = createStackNavigator()
const NavigatorSwitch = compose(
connect(
(state) => ({
isAppInitialized: isAppInitializedSelector(state),
isMaintenance: isMaintenanceSelector(state),
isSystemAuthEnabled: isSystemAuthEnabledSelector(state),
isAuthenticated: isAuthenticatedSelector(state),
Expand All @@ -70,7 +66,6 @@ const NavigatorSwitch = compose(
),
)(
({
isAppInitialized,
isMaintenance,
isSystemAuthEnabled,
isAuthenticated,
Expand All @@ -79,17 +74,6 @@ const NavigatorSwitch = compose(
signin,
isAppSetupComplete,
}: NavigatorSwitchProps) => {
if (!isAppInitialized) {
return (
<Stack.Navigator>
<Stack.Screen
name={ROOT_ROUTES.SPLASH}
component={SplashScreen}
options={{headerShown: false}}
/>
</Stack.Navigator>
)
}
if (isMaintenance) {
return (
<Stack.Navigator screenOptions={{headerShown: false}}>
Expand Down
18 changes: 0 additions & 18 deletions src/components/SplashScreen.js

This file was deleted.

0 comments on commit 2e07bba

Please sign in to comment.