Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 2.83 KB

PhotoSelector_v2.md

File metadata and controls

69 lines (45 loc) · 2.83 KB

react-native-photo-selector v2.x.x

CameraRoll Picker component for React native

v3.x.x is now available

DEMO

▶️ usecamera(option)

➕ Add to Project

$ npm i @react-native-community/cameraroll react-native-camera
  • Install component through npm
$ npm i react-native-photo-selector@previous

💡 Basic Usage

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} />
}

🔧 Props (* : required)

👀 View props detail

📲 Run Example

  • 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

🚀 Sample usecase

⭐ ETC