naoufal / react-native-safari-view

A React Native wrapper for Safari View Controller.

Home Page:https://www.npmjs.com/package/react-native-safari-view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SafariView.show is undefined

salmankhann opened this issue · comments

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

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.

commented

I also got this when I used "require" instead of "import".

^ Just putting this here for visibility.