1.0.8 • Published 6 years ago

react-native-camera-android-simple v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Simple React Native Camera for Android - KISS

This library is a very simple Android camera component for React Native. It was made to show a portrait camera view. Take a picture as fast as possible.

Getting started

  1. npm install react-native-camera-android-simple
  2. react-native link react-native-camera-android-simple

Usage

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

// 2 types: 'front' and 'back'
<Camera
  ref={(instance) => {
    this.camera = instance;
  }}
  type={type}
/>

// to capture a picture
this.camera.capture({metadata: options})
      .then((data) => console.log(data))
      .catch(err => console.error(err));

type

front, back

data

   {
       path: "link to image file"
   }
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago