Replies: 3 comments
-
I'd say this is one of the few really valid reasons to use platform extensions. Way to easy for people to confuse "platform" and "form factor" -- so it's best to only use when there's really some underlying platform API that requires the customization Anyway you can totally do this with expo-router, just can't be in the
Here's the relevant bit from the latest docs: excerpt
Plenty of ways to handle auth. The docs just provide one example. You can customize it so that you're persisting a redirect target, perhaps as a query param like: |
Beta Was this translation helpful? Give feedback.
-
Our philosophy for the |
Beta Was this translation helpful? Give feedback.
-
wow that was a ticket from long ago, i forgot about it ahah. so for the platform extension i realized later that i could still use them outside of app folder which like you said, fix the problem. for the auth i ended up taking the biometric screen out of the navigation because it was causing issues to navigate when the app was re-opening or coming from deeplink etc. |
Beta Was this translation helpful? Give feedback.
-
For now, expo-router doesn't support
.ios
/.android
and we use it for 2 reasons.FullWindowOverlay
) and android(View
in absolute) so not sure how we could handle that in the case of expo-router without custom extensions.The second one is more specific to our case, which is When you leave the app for more than 30 seconds, we need to block the user with a biometric Auth (fingerprint / faceID / local pin). which means i need a screen going above all else, without loosing current history (people coming back should not comeback to the home everytime they have to re-auth)
so the Auth use case doesn't work in our case since we need to redirect when coming from background on a biometric auth blocking all other screens when you're connected but not when you're not connected.
Beta Was this translation helpful? Give feedback.
All reactions