react-native-imagepicker
A React Native module which wraps ActionSheetIOS, CameraRoll and ImagePickerIOS to select a photo from the PhotoLibrary or CameraRoll. No external plugins needed.
Setup
npm install --save react-native-imagepicker
- Setup CameraRoll
Usage
Basics
const imagePicker = ;imagePicker;
Each button (takePhoto
, useLastPhoto
, chooseFromLibrary
) can be configure in following way
imagePicker
Also you can disable some of buttons
const imagePicker = ; imagePicker
uri
usage
uri
can be directly passed to <Image/>
or FormData
... { <Image source= uri: uri isStatic: true />} ...
const fd = ;fd;
Known bugs
- ImagePickerIOS take photo with wrong orientation #12249.
You can replace
RCTImagePickerManager.m
with version from PR.