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

react-native-camera

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-camera

A <Camera> element for React Native

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86K
decreased by-5.86%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-camera


A camera viewport for React Native. This module is currently in the very early stages of development and does not support image capture at this time, though it is coming.

Getting started

  1. Fetch from NPM: npm install react-native-camera --save
  2. In XCode, right click Libraries and Add Files to ______
  3. Add libRCTCamera.a to Build Phases -> Link Binary With Libraries

Usage

All you need is to require the react-native-camera module and then use the <Camera/> tag.

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Text,
  View,
} = React;
var Camera = require('react-native-camera');

var cameraApp = React.createClass({
  render: function() {
    return (
      <View>
        <Camera style={{height: 200, width: 200}}/>
      </View>
    );
  }
});

AppRegistry.registerComponent('cameraApp', () => cameraApp);

Thanks to Brent Vatne (@brentvatne) for the react-native-video module which provided me with a great example of how to set up this module.

FAQs

Package last updated on 01 Apr 2015

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