2.4.1 • Published 6 years ago
react-native-android-gallery-image-picker v2.4.1
react-native-android-gallery-image-picker
Getting started
$ npm install react-native-android-gallery-image-picker --save
Mostly automatic installation
$ react-native link react-native-android-gallery-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-android-gallery-image-pickerand addRNAndroidGalleryImagePicker.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNAndroidGalleryImagePicker.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.RNAndroidGalleryImagePickerPackage;to the imports at the top of the file - Add
new RNAndroidGalleryImagePickerPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-android-gallery-image-picker' project(':react-native-android-gallery-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-gallery-image-picker/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-android-gallery-image-picker')
Windows
- In Visual Studio add the
RNAndroidGalleryImagePicker.slninnode_modules/react-native-android-gallery-image-picker/windows/RNAndroidGalleryImagePicker.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Android.Gallery.Image.Picker.RNAndroidGalleryImagePicker;to the usings at the top of the file - Add
new RNAndroidGalleryImagePickerPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNAndroidGalleryImagePicker from 'react-native-android-gallery-image-picker';
// TODO: What to do with the module?
RNAndroidGalleryImagePicker;2.4.1
6 years ago
2.4.0
6 years ago
2.3.0
6 years ago
2.2.5
6 years ago
2.2.4
6 years ago
2.2.3
6 years ago
2.2.2
6 years ago
2.2.1
6 years ago
2.2.0
6 years ago
2.1.0
6 years ago
2.0.0
6 years ago
1.9.0
6 years ago
1.8.0
6 years ago
1.7.0
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago