1.0.5 • Published 7 years ago
react-native-merge-image v1.0.5
react-native-merge-image
Getting started
$ npm install react-native-merge-image --save
Mostly automatic installation
$ react-native link react-native-merge-image
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-merge-imageand addRNMergeImage.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNMergeImage.ato 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.RNMergeImagePackage;to the imports at the top of the file - Add
new RNMergeImagePackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-merge-image' project(':react-native-merge-image').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-merge-image/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-merge-image')
Windows
- In Visual Studio add the
RNMergeImage.slninnode_modules/react-native-merge-image/windows/RNMergeImage.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Merge.Image.RNMergeImage;to the usings at the top of the file - Add
new RNMergeImagePackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNMergeImage from 'react-native-merge-image';
// TODO: What to do with the module?
RNMergeImage;