$ npm install react-native-image-matrix --save
$ react-native link react-native-image-matrix
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-image-matrixand addRNImageMatrix.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNImageMatrix.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNImageMatrixPackage;to the imports at the top of the file - Add
new RNImageMatrixPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-image-matrix' project(':react-native-image-matrix').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-matrix/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-image-matrix')
- In Visual Studio add the
RNImageMatrix.slninnode_modules/react-native-image-matrix/windows/RNImageMatrix.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Com.Reactlibrary.RNImageMatrix;to the usings at the top of the file - Add
new RNImageMatrixPackage()to theList<IReactPackage>returned by thePackagesmethod
import RNImageMatrix from 'react-native-image-matrix';
// TODO: What to do with the module?
RNImageMatrix;