Skip to content

Commit

Permalink
update markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
long.nguyen.van.T03 committed Sep 19, 2024
1 parent a75c037 commit 1c1f9b6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(new ReadNfcPassportPackage());
```

## Configuration

### IOS
Expand Down

0 comments on commit 1c1f9b6

Please sign in to comment.