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

tipsi-camera-roll

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

tipsi-camera-roll

Camera Roll module for React-Native

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

tipsi-camera-roll

Getting started

$ npm install tipsi-camera-roll --save

Mostly automatic installation

$ react-native link tipsi-camera-roll

Manual installation

iOS
  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulestipsi-camera-roll and add RNTipsiCameraroll.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNTipsiCameraroll.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<
Android (Under development)
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.tipsi.cameraroll.RNTipsiCamerarollPackage; to the imports at the top of the file
  • Add new RNTipsiCamerarollPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':tipsi-camera-roll'
    project(':tipsi-camera-roll').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-tipsi-cameraroll/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-tipsi-cameraroll')
    

Usage

import CameraRoll from 'tipsi-camera-roll';

CameraRoll.saveToCameraRoll('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png', 'google')
      .then(r => {
				console.log('Saved', r)
      })
      .catch((error) => {
				console.log('Saved error:', error)
      })

saveToCameraRoll

ParamsDescType
imageSourceSource to image. Can be url, local file path, base64 stringStringrequred
albumNameAlbum name. If it nil image will be saved into Camera rollStringoptional

TODO:

  • Add Android implementation
  • Add Error convector in native module
  • Clean up code

Keywords

FAQs

Package last updated on 11 Sep 2018

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