react-google-picker-2
v0.0.2
Published
Simple react wrapper for google picker API. Forked for custom DocsView support.
Downloads
16
Maintainers
Readme
React google picker
Simple react wrapper for Google Picker API
Installation
npm install react-google-picker
Usage
<GooglePicker clientId={'your-client-id'}
developerKey={'your-developer-key'}
scope={['https://www.googleapis.com/auth/drive.readonly']}
onChange={data => console.log('on change:', data)}
multiselect={true}
navHidden={true}
authImmediate={false}
mimeTypes={['image/png', 'image/jpeg', 'image/jpg']}
viewId={'DOCS'}>
<MyCustomButton />
</GooglePicker>
Demo
npm install
npm start
open http://localhost:8080