react-native-browser-modal

A very simple wrapper around SVWebViewController for React Native

Usage no npm install needed!

<script type="module">
  import reactNativeBrowserModal from 'https://cdn.skypack.dev/react-native-browser-modal';
</script>

README

react-native-browser-modal

iOS ONLY (right now)

Only works with projects that have been built with native code (not CRNA/Expo)

npm install react-native-browser-modal

or

yarn add react-native-browser-modal

and then

react-native link react-native-browser-modal

import { View, Button } from 'react-native';
import { openUrl } from 'react-native-browser-modal';

const MyComponent = () => {
  return (
    <View>
      <Button title="My Link" onPress={() => openUrl('https://my.url')} />
    </View>
  );
};

export default MyComponent;