1.2.2 • Published 12 days ago
react-native-straffic-nfc v1.2.2
react-native-straffic-nfc
Getting started
$ npm install react-native-straffic-nfc --save
Mostly automatic installation
$ react-native link react-native-straffic-nfc
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-straffic-nfc
and addRNStrafficNfc.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNStrafficNfc.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNStrafficNfcPackage;
to the imports at the top of the file - Add
new RNStrafficNfcPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-straffic-nfc' project(':react-native-straffic-nfc').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-straffic-nfc/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-straffic-nfc')
Windows
- In Visual Studio add the
RNStrafficNfc.sln
innode_modules/react-native-straffic-nfc/windows/RNStrafficNfc.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Straffic.Nfc.RNStrafficNfc;
to the usings at the top of the file - Add
new RNStrafficNfcPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNStrafficNfc from 'react-native-straffic-nfc';
// TODO: What to do with the module?
RNStrafficNfc;
1.2.2
12 days ago
1.2.0
4 months ago
1.1.3
4 months ago
1.2.1
4 months ago
1.1.1
8 months ago
1.1.0
12 months ago
1.1.2
8 months ago
1.0.21
12 months ago
1.0.20
12 months ago
1.0.19
12 months ago
1.0.18
12 months ago
1.0.17
12 months ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago