turbo-deeplink-dubu
Version:
React Native TurboModule for handling deep links
49 lines (29 loc) • 997 B
Markdown
A React Native TurboModule for handling deep links in your application.
```sh
npm install turbo-deeplink-dubu
```
or using yarn:
```sh
yarn add turbo-deeplink-dubu
```
```javascript
import { TurboDeeplink } from "turbo-deeplink-dubu";
// Check if deep linking is supported
const isSupported = await TurboDeeplink.isSupported();
// Check if a URL can be opened
const canOpen = await TurboDeeplink.canOpenURL("https://example.com");
// Open a URL
const opened = await TurboDeeplink.openURL("https://example.com");
```
Returns a promise that resolves to a boolean indicating whether deep linking is supported on the device.
Returns a promise that resolves to a boolean indicating whether the specified URL can be opened.
Opens the specified URL and returns a promise that resolves to a boolean indicating whether the URL was successfully opened.
MIT