[APP-547] Universal links & deeplinking (#555)

* added ios scheme and intentFilters for deep linking

* added intentFilters for android deep linking

* add .env files to .gitignore

* add autoVerify for android deep links
This commit is contained in:
Ansh 2023-05-04 14:18:27 -07:00 committed by GitHub
parent c8af784328
commit d3e8bd3e9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 4 deletions

View file

@ -299,7 +299,9 @@ function navigate<K extends keyof AllNavigatorParams>(
function resetToTab(tabName: 'HomeTab' | 'SearchTab' | 'NotificationsTab') {
if (navigationRef.isReady()) {
navigate(tabName)
navigationRef.dispatch(StackActions.popToTop())
if (navigationRef.canGoBack()) {
navigationRef.dispatch(StackActions.popToTop()) //we need to check .canGoBack() before calling it
}
}
}