Socket
Socket
Sign inDemoInstall

rn-photo-picker

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.1.0

14

index.js

@@ -6,2 +6,3 @@ import React, { PureComponent } from "react";

CameraRoll,
AppState,
Dimensions,

@@ -14,3 +15,14 @@ TouchableOpacity,

export default class PhotoPicker extends PureComponent {
async componentDidMount() {
componentDidMount() {
this.getPhotos();
AppState.addEventListener("change", nextAppState => {
if (nextAppState === "active") this.getPhotos();
});
}
componentWillUnmount() {
AppState.removeEventListener("change", this.getPhotos);
}
async getPhotos() {
try {

@@ -17,0 +29,0 @@ const data = await CameraRoll.getPhotos({

2

package.json
{
"name": "rn-photo-picker",
"version": "0.0.5",
"version": "0.1.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "private": false,

@@ -19,2 +19,4 @@ # React Native photo picker 📷⚛📱

https://facebook.github.io/react-native/docs/linking-libraries-ios.html - this should help You
# Permissions

@@ -31,4 +33,4 @@

var pickedPhotos = [];
var App = () => (
const pickedPhotos = [];
const App = () => (
<PhotoPicker

@@ -35,0 +37,0 @@ color="blue"

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