Closed dgurns closed 7 years ago
It's not working for me. I'm running React Native 0.44.2, React 16.0.0-alpha.6, React Native Safari View 2.0.0. Just opens a separate Safari window outside of the app.
Here's my code:
onPress = () => { SafariView.isAvailable() .then(SafariView.show({ url: this.state.courseUrl })) .catch(() => Linking.openURL(this.state.courseUrl)); }
Duh. If you get this issue, don't forget to run react-native link
react-native link
Glad you figured it out @dgurns 🙌
It's not working for me. I'm running React Native 0.44.2, React 16.0.0-alpha.6, React Native Safari View 2.0.0. Just opens a separate Safari window outside of the app.
Here's my code: