An in-app-browser (IAB) module for react-native exposing bindings for SFSafariViewController, ASWebAuthenticationSession, ChromeCustomTabs & more, powered by Nitro Modules.
- Easy-to-use API
- Common cross-platform support
- Platform-specific implementations (iOS and Android)
Important
Make sure you add react-native-nitro-modules as dependency.
npx install @renanmav/react-native-in-app-browser
You can choose between common or platform-specific interfacing.
import { InAppBrowser } from 'react-native-in-app-browser'
// Open a URL in the in-app browser
InAppBrowser.open('https://example.com')
Feature | iOS | Android |
---|---|---|
InAppBrowser | ✅ | ✅ |
SFSafariViewController | ✅ | ❌ |
ASWebAuthenticationSession | ✅ | ❌ |
ChromeCustomTabs | ❌ | ✅ |
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.