react-native-full-camera-roll
v2.0.1
Published
React Native Camera Roll access - GetPhotos(offset, callback) return : uri, timestamp, width, height, thumb(base64)
Downloads
7
Maintainers
Readme
react-native-full-camera-roll
Getting started
$ npm install react-native-full-camera-roll --save
Mostly automatic installation
$ react-native link react-native-full-camera-roll
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNFullCameraRollPackage;
to the imports at the top of the file - Add
new RNFullCameraRollPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-full-camera-roll' project(':react-native-full-camera-roll').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-full-camera-roll/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-full-camera-roll')
Usage
import RNFullCameraRoll from 'react-native-full-camera-roll';
// TODO: What to do with the module?
RNFullCameraRoll;