@mikeljames/react-native-in-app-browser
v1.0.6
Published
`yarn add @medapps/react-native-in-app-browser`
Downloads
11
Readme
react-native-in-app-browser
yarn add @medapps/react-native-in-app-browser
API
This component wraps WebView, props are passed down to this component
Non React Context
import {openURL} from '@medapps/react-native-in-app-browser';
openURL(url); // opens url
React Context
import {useInAppBrowser} from '@medapps/react-native-in-app-browser';
function ExampleComponent() {
const {open, close, url, isOpen} = useInAppBrowser();
return (
<Touchable onPress={() => open({url})}>
<Text>Open!</Text>
</Touchable>
);
}