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