From 1c1f9b6c2edb7f271360f2586e8fe54e6239e262 Mon Sep 17 00:00:00 2001 From: "long.nguyen.van.T03" Date: Thu, 19 Sep 2024 17:05:10 +0700 Subject: [PATCH] update markdown file --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index 2132869..9745f48 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,47 @@ npm install react-native-nfc-passport-info yarn add react-native-nfc-passport-info ``` +## Linking + +### Autolink + +The library has autolink support + +### Manual link + +#### IOS + +Add to `Podfile` + +``` + rn_nfc_path = '../node_modules/react-native-nfc-passport-info' + pod 'react-native-nfc-passport-info', :path => rn_nfc_path +``` + +#### Android + +Add to `setting.gradle` + +``` + include ':react-native-nfc-passport-info' + project(':react-native-nfc-passport-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-nfc-passport-info/android') +``` + +Add to `app/build.gradle` + +``` + implementation project(':react-native-nfc-passport-info') +``` + +Add to `MainApplication` + +``` + import com.readnfcpassport.ReadNfcPassportPackage; + + List packages = new PackageList(this).getPackages(); + packages.add(new ReadNfcPassportPackage()); +``` + ## Configuration ### IOS