Expo In-App Browser for DEUNA
npm install @deuna/expo-in-app-browserReact Native In-App Browser adapter for DEUNA using Expo Web Browser.
``bash`
npm install @deuna/expo-in-app-browser
npm install expo-web-browseror
yarn add @deuna/expo-in-app-browser
yarn add expo-web-browser
`tsx
import { ExpoWebBrowserAdapter } from '@deuna/expo-in-app-browser';
const browser = new ExpoWebBrowserAdapter();
// Open a URL in the in-app browser
await browser.openUrl('https://example.com');
`
A class that implements the InAppBrowserAdapter interface.
#### Methods
| Method | Description |
| ------------------------------------- | -------------------------------------------- |
| openUrl(url: string): Promise | Opens the specified URL in an in-app browser |
`typescript``
interface InAppBrowserAdapter {
openUrl(url: string): Promise
}
MIT