Installation
yarn add UberMC/react-native-fetchDeferredAppLink
Usage
const { FBAppLink } = NativeModules;
FBAppLink.get().then(url => {
console.log(url);
//or console.log(queryString.parseUrl(url)) to get an object with params;
//npm i query-string
//yarn add query-string
});
Android
settings.gradle
include ':react-native-fbapplink'
project(':react-native-fbapplink').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbapplink/android')
app/build.gradle
implementation project(':react-native-fbapplink')
MainApplication.java
import caribu.android.fbapplink.FBAppLinkPackage;
@Override
protected List getPackages() {
return Arrays.asList(
new FBAppLinkPackage()
iOS
podfile
pod 'react-native-fbapplink', :path => '../node_modules/react-native-fbapplink'
For any android errors look in react-native-fbapplink/android/build.gradle and match the dependencies/support libraries
that are being used in your project.