Socket
Socket
Sign inDemoInstall

react-google-drive-picker

Package Overview
Dependencies
5
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.6 to 1.1.7

2

package.json
{
"name": "react-google-drive-picker",
"version": "1.1.6",
"version": "1.1.7",
"description": "React google drive picker api",

@@ -5,0 +5,0 @@ "types": "./dist",

@@ -30,3 +30,3 @@ # React-google-drive-picker

function App() {
const [openPicker, data, authResponse] = useDrivePicker({onCancel: () => console.log("User closed picker with close/cancel button")});
const [openPicker, authResponse] = useDrivePicker();
// const customViewsArray = [new google.picker.DocsView()]; // custom view

@@ -44,11 +44,11 @@ const handleOpenPicker = () => {

// customViews: customViewsArray, // custom view
callbackFunction: (data) => {
if (data.action === 'cancel') {
console.log('User clicked cancel/close button')
}
console.log(data)
},
})
}
useEffect(() => {
// do anything with the selected/uploaded files
if(data){
data.docs.map(i => console.log(i.name))
}
}, [data])

@@ -73,2 +73,3 @@

|------------------|----------|------------------|-------------------------------|
| callbackFunction |function | REQUIRED |Callback function that will be called on picker action |
| clientId | string | REQUIRED | Google client id |

@@ -75,0 +76,0 @@ | developerKey | string | REQUIRED | Google developer key |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc