@@ -17,7 +17,6 @@ import {
17
17
MainContainer ,
18
18
ActivityProvider ,
19
19
OpenIDCredentialRecordProvider ,
20
- PersistentStorage ,
21
20
} from '@hyperledger/aries-bifold-core'
22
21
import messaging from '@react-native-firebase/messaging'
23
22
import { useNavigation } from '@react-navigation/native'
@@ -30,8 +29,7 @@ import SplashScreen from 'react-native-splash-screen'
30
29
import Toast from 'react-native-toast-message'
31
30
import { container } from 'tsyringe'
32
31
33
- // TODO:(JL) Cleanup AppState since it is not really used?
34
- import { AppContainer , AppState } from './container-imp'
32
+ import { AppContainer } from './container-imp'
35
33
import bcwallet from './src'
36
34
import tours from './src/components/tours'
37
35
import { surveyMonkeyUrl , surveyMonkeyExitUrl } from './src/constants'
@@ -52,8 +50,7 @@ const App = () => {
52
50
const { t } = useTranslation ( )
53
51
const { navigate } = useNavigation ( )
54
52
const bifoldContainer = new MainContainer ( container . createChildContainer ( ) ) . init ( )
55
- const storage = new PersistentStorage ( )
56
- const bcwContainer = new AppContainer ( bifoldContainer , t , navigate , storage ) . init ( )
53
+ const bcwContainer = new AppContainer ( bifoldContainer , t , navigate ) . init ( )
57
54
58
55
if ( ! isTablet ( ) ) {
59
56
Orientation . lockToPortrait ( )
@@ -64,6 +61,8 @@ const App = () => {
64
61
} , [ ] )
65
62
66
63
useEffect ( ( ) => {
64
+ // Hide the native splash / loading screen so
65
+ // that our RN version can be displayed.
67
66
SplashScreen . hide ( )
68
67
} , [ ] )
69
68
0 commit comments