Skip to content

Repository files navigation

DynamicLink

Installation

npm install @tinyhref/dynamic-link
or
yarn add @tinyhref/dynamic-link

Use It

importReactfrom'react';importDynamicLinkfrom'@tinyhref/dynamic-link';constdynamicLinkProps={subdomainUrl: 'https://deeplink.tinyhref.com',appStoreUrl: 'https://apps.apple.com/app/apple-store/id1072038396',googlePlayUrl: 'https://play.google.com/store/apps/details?id=vn.vtv.vtvgo',fallbackUrl: 'https://tinyhref.com',onOpenStore: ({ link })=>{// Handle Clipboard-Based Deferred Deep Linking}};<DynamicLink{...dynamicLinkProps}>
Open App
</DynamicLink>

or

importReactfrom'react';import{useOpenDynamicLink}from'@tinyhref/dynamic-link';const{ link }=useOpenDynamicLink({subdomainUrl: 'https://deeplink.tinyhref.com',appStoreUrl: 'https://apps.apple.com/app/apple-store/id1072038396',googlePlayUrl: 'https://play.google.com/store/apps/details?id=vn.vtv.vtvgo',fallbackUrl: 'https://tinyhref.com'});<ahref={link}>
Open App
</a>

About

DynamicLink is a lightweight, Firebase-free alternative for handling dynamic links and deep links in web and mobile hybrid environments

Topics

Resources

Stars

37 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages