CameraRoll Picker component for React native
- Install Dependency libraries with Android & IOS settings
$ npm i @react-native-community/cameraroll react-native-camera
- Install component through npm
$ npm i react-native-photo-selector@previous
import PhotoSelector, { PhotoProps } from 'react-native-photo-selector';
...
const Demo = () => {
const _callback = (images: PhotoProps[], image: PhotoProps) => {
console.log('selected images :', images);
console.log('current image :', image);
};
return <PhotoSelector callback={_callback} />
}
- To run the example app, you have to check the permissions of the app
$ git clone https://github.com/skqksh/react-native-photo-selector.git
$ cd react-native-photo-selector
$ cd example
$ npm install
$ npm run android
- Typescript Support
- This library is based from react-native-camera-roll-picker