turbo-deeplink-dubu
v1.0.4
Published
React Native TurboModule for handling deep links
Maintainers
Readme
turbo-deeplink
A React Native TurboModule for handling deep links in your application.
Installation
npm install turbo-deeplink-dubuor using yarn:
yarn add turbo-deeplink-dubuUsage
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");API
isSupported()
Returns a promise that resolves to a boolean indicating whether deep linking is supported on the device.
canOpenURL(url: string)
Returns a promise that resolves to a boolean indicating whether the specified URL can be opened.
openURL(url: string)
Opens the specified URL and returns a promise that resolves to a boolean indicating whether the URL was successfully opened.
License
MIT
