0.1.84 • Published 6 years ago
@namiml/nami-react-native-module v0.1.84
react-native-nami
Getting started
$ npm install react-native-nami --save
Mostly automatic installation
$ react-native link react-native-nami
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-namiand addRNNami.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNNami.ato 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.RNNamiPackage;to the imports at the top of the file - Add
new RNNamiPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-nami' project(':react-native-nami').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-nami/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-nami')
Windows
- In Visual Studio add the
RNNami.slninnode_modules/react-native-nami/windows/RNNami.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Nami.RNNami;to the usings at the top of the file - Add
new RNNamiPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNNami from 'react-native-nami';
// TODO: What to do with the module?
RNNami;0.1.84
6 years ago
0.1.83
6 years ago
0.1.82
6 years ago
0.1.80
6 years ago
0.1.81
6 years ago
0.1.79
6 years ago
0.1.78
6 years ago
0.1.77
6 years ago
0.1.76
6 years ago
0.1.74
6 years ago
0.1.75
6 years ago
0.1.73
6 years ago
0.1.71
6 years ago
0.1.72
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago