Micoup Image Picker
Getting started
$ npm install react-native-micoup-image-picker --save
Mostly automatic installation
$ react-native link react-native-micoup-image-picker
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-micoup-image-picker
and addRNMicoupImagePicker.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNMicoupImagePicker.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.RNMicoupImagePickerPackage;
to the imports at the top of the file - Add
new RNMicoupImagePickerPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-micoup-image-picker' project(':react-native-micoup-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-micoup-image-picker/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-micoup-image-picker')
Windows
- In Visual Studio add the
RNMicoupImagePicker.sln
innode_modules/react-native-micoup-image-picker/windows/RNMicoupImagePicker.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Micoup.Image.Picker.RNMicoupImagePicker;
to the usings at the top of the file - Add
new RNMicoupImagePickerPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNMicoupImagePicker from 'react-native-micoup-image-picker';
// TODO: What to do with the module?
RNMicoupImagePicker;