Linking to expo app's main screen


#1

I am trying to add a external link in my app to get a user to expo app’s home, since iOS devices don’t have a hardware back button.

The linking section of the docs looked promising where I am using the following snippet to get the user to tap on a button to get to expo app’s main screen.

The Expo client uses the exp:// scheme, but if we link to exp:// without any address afterwards, it will open the app to the main screen.

import { Linking } from 'react-native';
...
<Button 
    onPress={() => Linking.openURL("exp://")} 
/>

Is this the right approach? Any other ways to link to the main screen?


#2

Is it working for you?


#3

Hi @nikki, it’s not working. I can do deep linking just fine to other published apps within expo, but can’t do it to the main screen.

So far, I have tried variants of “exp://+”, “exp://exp.home”, “exp://expo.home” but no luck.


#4

@siddharthlatest – as it turns out I think there isn’t a way to this properly right now – if you shake the device you get a screen that does let you get back though. You could request this as a feature in https://expo.canny.io/feature-requests?sort=top – I’ll communicate internally about this idea.


#5

@nikki Thanks for the quick response. Added the feature request, link for reference - https://expo.canny.io/feature-requests/p/linking-to-expo-apps-main-screen.


closed #6

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.