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