Skip to content

add more information about deep link for expo projects #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 29, 2018

Conversation

eriveltonelias
Copy link
Member

No description provided.

@react-navigation-bot
Copy link

react-navigation-bot commented Dec 28, 2018

Deploy preview for react-navigation ready!

Built with commit cdb636d

https://deploy-preview-332--react-navigation.netlify.com


const MainApp = () => <SimpleApp uriPrefix={prefix} />;
```

## Set up with Expo projects

you need to specify a scheme for your app. You can register for a scheme in your `app.json` by adding a string under the scheme key:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should capitalize the first word in the paragraph, so "You need" rather than "you need"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏾‍♂️
sorry haha

@@ -40,12 +40,50 @@ const SimpleApp = createAppContainer(createStackNavigator({...}));
// on Android, the URI prefix typically contains a host in addition to scheme
// on Android, note the required / (slash) at the end of the host property
const prefix = Platform.OS == 'android' ? 'mychat://mychat/' : 'mychat://';
// in Expo projects you can do the following to get the URI prefix
const prefix = Expo.Linking.makeUrl('/');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to have an entirely separate section for expo projects / vanilla react native projects, and just repeat this entire code example in both sections but with the prefix line that is relevant to the platform. it's a bit cleaner when you can just pick the section relevant to you and follow that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thanks! I'll do that.

Copy link
Member

@brentvatne brentvatne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks as always :) added a couple of comments

@eriveltonelias
Copy link
Member Author

done :)

@brentvatne
Copy link
Member

💯

@brentvatne
Copy link
Member

added a bit more clarification on the expo stuff :)

@brentvatne brentvatne merged commit ba7b820 into react-navigation:source Dec 29, 2018
@eriveltonelias
Copy link
Member Author

cool! thanks for add that awesome clarification. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants