sdoomz / react-google-picker

Google Picker for React
MIT License
45 stars 46 forks source link

Adds callback to customize picker with multiple views #17

Closed joelvh closed 2 months ago

joelvh commented 5 years ago

This Pr adds a customizePicker prop which receives the picker, a reference to the Google namespace to do more picker-related things, and also passes a “view builder” function that lets you quickly build additional views and sub-classes the view class appropriately, to enable more features per view.

This allowed us to create a picker with multiple views (tabs) for: Google Drive, Recent Files, Upload and more.

There is an appearance of a lot of changes because I also replaced es-lint with Standard.js, which uses es-lint under the hood.