jarden-digital/react-native-pincode

Super slow loading on app restart in Android

pkp93 opened this issue · 2 comments

pkp93 commented

Hi! I am using this component in my app.js wrapping my react-navigation container (i want to lock screen if app is in background for 1 minute also everytime user restarts the app). What i have observed is that it takes forever for the component to get hasUserSetPinCode() when the app is opened in android. Any idea why this is happening ? Could this be related to oblador/react-native-keychain#314 ?

xesf commented

@pkp93 I had the same issue and I followed your link and made the suggested patch.
That sorted the issue for me.

pkp93 commented

@pkp93 I had the same issue and I followed your link and made the suggested patch.
That sorted the issue for me.

Good for you. That patch didnt work for me, it has got to do with how shared preference is used I guess cuz I was facing similar issues in Expo SecureStore. So I am using expo local authentication for now (which is also buggy, but does the work i need somehow).