react-native-native-hunt-lib
v1.0.6
Published
shitty native module
Downloads
8
Readme
react-native-native-hunt-lib
Getting started
$ npm install react-native-native-hunt-lib --save
Mostly automatic installation
$ react-native link react-native-native-hunt-lib
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-native-hunt-lib
and addRNNativeHuntLib.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNNativeHuntLib.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.RNNativeHuntLibPackage;
to the imports at the top of the file - Add
new RNNativeHuntLibPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-native-hunt-lib' project(':react-native-native-hunt-lib').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-native-hunt-lib/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-native-hunt-lib')
Windows
- In Visual Studio add the
RNNativeHuntLib.sln
innode_modules/react-native-native-hunt-lib/windows/RNNativeHuntLib.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Native.Hunt.Lib.RNNativeHuntLib;
to the usings at the top of the file - Add
new RNNativeHuntLibPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNNativeHuntLib from 'react-native-native-hunt-lib';
// TODO: What to do with the module?
RNNativeHuntLib;