Skip to content
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

Question - what is the right way to open the web browser? #90

Open
GYberkeley opened this issue Mar 27, 2019 · 4 comments
Open

Question - what is the right way to open the web browser? #90

GYberkeley opened this issue Mar 27, 2019 · 4 comments

Comments

@GYberkeley
Copy link

GYberkeley commented Mar 27, 2019

Is there a web browser intent that can be sent through this library?

EDIT: Also is there a way to fire custom intents? Like I want to open my launcher. Is there a way to fire that from this library?

@lucasferreira
Copy link
Owner

To open browser you could use the native way:

https://facebook.github.io/react-native/docs/linking#opening-external-links

@GYberkeley
Copy link
Author

Got it. Thank you! What about launching the launcher intent: 'android.intent.action.launcher'

Is there a way to do that?

@lucasferreira
Copy link
Owner

I don't know if you need it's really a "custom intent", you could try openApp method:

https://github.com/lucasferreira/react-native-send-intent#example--open-app

@GYberkeley
Copy link
Author

Hmm.. So you're saying I could try SendIntentAndroid.openApp('android.intent.action.launcher'); and it might work?

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

No branches or pull requests

2 participants