naoufal / react-native-safari-view

A React Native wrapper for Safari View Controller.
https://www.npmjs.com/package/react-native-safari-view
494 stars 110 forks source link

Has anyone got this working with RN 0.44? #63

Closed dgurns closed 7 years ago

dgurns commented 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));
}
dgurns commented 7 years ago

Duh. If you get this issue, don't forget to run react-native link

naoufal commented 7 years ago

Glad you figured it out @dgurns 🙌