SafariView.show is undefined
salmankhann opened this issue · comments
Salman Hasrat Khan commented
When SafariView is imported as
import SafariView from 'react-native-safari-view'
SafariView.show({ url: selectedShowtime.bookingUrl });
We get that show is undefined.
I've linked the library and still get this error.
react-native-cli: 1.2.0
react-native: 0.41.2
Salman Hasrat Khan commented
Sorry, fixed it! Forgot to restart the packager after npm i. I'm going to leave this here incase anyone also stumbles upon this issue.
ReUp commented
I also got this when I used "require" instead of "import".
^ Just putting this here for visibility.