npm

@renanmav/react-native-in-app-browser
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

react-native-in-app-browser

An in-app-browser (IAB) module for react-native exposing bindings for SFSafariViewController, ASWebAuthenticationSession, ChromeCustomTabs & more, powered by Nitro Modules.

Features

  • Easy-to-use API
  • Common cross-platform support
  • Platform-specific implementations (iOS and Android)

Installation

[!IMPORTANT] Make sure you add react-native-nitro-modules as dependency.

npx install @renanmav/react-native-in-app-browser

Usage

You can choose between common or platform-specific interfacing.

Basic usage

import { InAppBrowser } from 'react-native-in-app-browser'
// Open a URL in the in-app browser
InAppBrowser.open('https://example.com')

Platform Compatibility

Feature iOS Android
InAppBrowser
SFSafariViewController
ASWebAuthenticationSession
ChromeCustomTabs

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i @renanmav/react-native-in-app-browser

Weekly Downloads

67

Version

0.0.2

License

MIT

Unpacked Size

638 kB

Total Files

90

Last publish

Collaborators

  • renanmav