1.0.55 • Published 5 years ago
react-native-gy-obs-for-hw v1.0.55
react-native-gy-obs-for-hw
Getting started
$ npm install react-native-gy-obs-for-hw --save
Mostly automatic installation
$ react-native link react-native-gy-obs-for-hw
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-gy-obs-for-hw
and addRNGyObsForHw.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNGyObsForHw.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.RNGyObsForHwPackage;
to the imports at the top of the file - Add
new RNGyObsForHwPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-gy-obs-for-hw' project(':react-native-gy-obs-for-hw').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gy-obs-for-hw/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-gy-obs-for-hw')
Windows
- In Visual Studio add the
RNGyObsForHw.sln
innode_modules/react-native-gy-obs-for-hw/windows/RNGyObsForHw.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Gy.Obs.For.Hw.RNGyObsForHw;
to the usings at the top of the file - Add
new RNGyObsForHwPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNGyObsForHw from 'react-native-gy-obs-for-hw';
// TODO: What to do with the module?
RNGyObsForHw;