0.1.84 • Published 5 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-nami
and addRNNami.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNNami.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.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.sln
innode_modules/react-native-nami/windows/RNNami.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Nami.RNNami;
to the usings at the top of the file - Add
new RNNamiPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNNami from 'react-native-nami';
// TODO: What to do with the module?
RNNami;
0.1.84
5 years ago
0.1.83
5 years ago
0.1.82
5 years ago
0.1.80
5 years ago
0.1.81
5 years ago
0.1.79
5 years ago
0.1.78
5 years ago
0.1.77
5 years ago
0.1.76
5 years ago
0.1.74
5 years ago
0.1.75
5 years ago
0.1.73
5 years ago
0.1.71
5 years ago
0.1.72
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago