Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-cameraroll

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-cameraroll

A replacement camera roll module for React Native

  • 1.0.0-alpha2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-48%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Camera Roll

npm version License

RNCameraRoll is a replacement CameraRoll module for React Native that offers consistent behaviour across iOS and Android


Install

npm i react-native-cameraroll --save
Platform specific setup guides:

ios android


Usage

import RNCameraRoll from 'react-native-cameraroll';

getAssets(params: Object): Promise<Object>

Retrieve image and/or video assets from the device's Camera Roll.

RNCameraRoll.getAssets({ assetType: 'image', limit: 20 })
  .then(response => console.log(response))
  .catch(err => console.error(err));

params takes the following shape:

{
  assetType: 'image' | 'video' | 'all';
  limit: number; // How many assets to return
  start?: string | number; // The start cursor (use end_cursor from previous request)
}

The response takes the following shape:

{
  assets: [{
    filename: string;
    height: number;
    location: {
      altitude?: number;
      heading?: number;
      latitude: number;
      longitude: number;
      speed?: number;
    };
    timestamp: number;
    type: 'image' | 'video';
    uri: string;
    width: number;
  }],
  page_info: {
    end_cursor: string | number;
    has_next_page: boolean;
    start_cursor: string | number;
  };
}

Contributing

We welcome any contribution to the repository. Please ensure your changes to the JavaScript code follow the styling guides controlled by ESlint. Changes to native code should be kept clean and follow the standard of existing code.


License

  • MIT

Keywords

FAQs

Package last updated on 04 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc