[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-camera
Go to file
2020-02-12 18:58:17 -05:00
.circleci feat(ci): CircleCI Fix & Optimizations (#2550) 2019-10-18 08:42:21 -03:00
.github feat(funding): add FUNDING.yml [skip ci] 2019-06-13 15:13:56 -03:00
android fix(android): Fix Objects.equals that is only available after API 19 (#2635) 2019-12-10 11:02:16 -03:00
docs feat(ios): Make camera ready events to fire also on camera/device change to be consistent with Android. Fire unmount error when session or device fails to start. Update advanced example app to use camera ready event instead. (#2642) 2019-12-13 14:51:50 -03:00
examples converted basic sample to hooks 2019-12-24 14:25:26 -05:00
ios feat(ios): Make camera ready events to fire also on camera/device change to be consistent with Android. Fire unmount error when session or device fails to start. Update advanced example app to use camera ready event instead. (#2642) 2019-12-13 14:51:50 -03:00
src Fixed hooks sample to be in line with @mauriciords implementation 2020-02-12 18:58:17 -05:00
types Fixed hooks sample to be in line with @mauriciords implementation 2020-02-12 18:58:17 -05:00
website doc(tidelift): add tidelift for enterprise 2019-10-18 23:07:24 -03:00
windows fix(windows): update min sdk version (#2117) 2019-02-19 16:22:03 +01:00
.dockerignore feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -03:00
.eslintrc docs(rn-camera): add rncamera-example without face detection (#1979) [skip ci] 2018-12-11 12:37:48 +01:00
.flowconfig chore(lint): fix lint to make ci work 2018-04-15 08:19:02 -03:00
.gitattributes disable git large files 2018-02-01 11:26:07 -02:00
.gitignore feat(mlkit): Migrate Face, Barcode and Text Recognition to Firebase MLKit (iOS - text, Android - all) (#2075) 2019-03-11 08:56:24 -03:00
.npmignore feat(npm): ignore docs and publish 3.11.0 2019-11-19 23:39:46 -03:00
.prettierrc docs(rn-camera): add rncamera-example without face detection (#1979) [skip ci] 2018-12-11 12:37:48 +01:00
CHANGELOG.md chore(changelog): add link to github releases [skip ci] 2018-11-12 11:26:48 +01:00
commitlint.config.js chore(semantic-release): setup semantic-release for automated publishes (#1898) 2018-11-12 08:46:47 +01:00
docker-compose.yml feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -03:00
Dockerfile feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -03:00
LICENSE Initial commit 2015-03-31 17:54:41 -07:00
package.json chore(release): 3.15.0 [skip ci] 2019-12-13 17:55:53 +00:00
react-native-camera.podspec feat(mlkit): add mlkit barcode detection ios (#2209) 2019-04-16 15:33:46 -03:00
README.md doc(tidelift): add security section on readme 2019-11-08 16:16:54 -03:00
THIRD-PARTY-LICENSES rename expo to simple RN, add js files, and export them inside the same camera package 2018-01-01 19:16:02 -02:00
yarn.lock chore(deps): bump npm from 6.4.1 to 6.13.4 (#2643) 2019-12-13 15:07:23 -03:00

React Native Camera Backers on Open Collective Sponsors on Open Collective npm version npm downloads

Docs

Follow our docs here https://react-native-community.github.io/react-native-camera/

Sponsors

If you use this library on your commercial/personal projects, you can help us by funding the work on specific issues that you choose by using IssueHunt.io!

This gives you the power to prioritize our work and support the project contributors. Moreover it'll guarantee the project will be updated and maintained in the long run.

issuehunt-image

react-native-camera for enterprise

Available as part of the Tidelift Subscription

The maintainers of react-native-camera and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Open Collective

You can also fund this project using open collective

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

The comprehensive camera module for React Native.

Supports:

  • photographs.
  • videos
  • face detection (Android & iOS only)
  • barcode scanning
  • text recognition (optional installation for iOS using CocoaPods)

Example import

import { RNCamera, FaceDetector } from 'react-native-camera';

How to use master branch?

We recommend using the releases from npm, however if you need some features that are not published on npm yet you can install react-native-camera from git.

yarn: yarn add react-native-camera@git+https://git@github.com/react-native-community/react-native-camera.git

npm: npm install --save react-native-camera@git+https://git@github.com/react-native-community/react-native-camera.git

Contributing

  • Pull Requests are welcome, if you open a pull request we will do our best to get to it in a timely manner
  • Pull Request Reviews are even more welcome! we need help testing, reviewing, and updating open PRs
  • If you are interested in contributing more actively, please contact me (same username on Twitter, Facebook, etc.) Thanks!
  • We are now on Open Collective! Contributions are appreciated and will be used to fund core contributors. more details
  • If you want to help us coding, join Expo slack https://slack.expo.io/, so we can chat over there. (#react-native-camera)
Permissions

To use the camera,

  1. On Android you must ask for camera permission:
  <uses-permission android:name="android.permission.CAMERA" />

To enable video recording feature you have to add the following code to the AndroidManifest.xml:

  <uses-permission android:name="android.permission.RECORD_AUDIO"/>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

5j2jduk

  1. On iOS, you must update Info.plist with a usage description for camera
...
<key>NSCameraUsageDescription</key>
<string>Your own description of the purpose</string>
...
	

For more information on installation, please refer to installation requirements.

For general introduction, please take a look into this RNCamera.

Security contact information

To report a security vulnerability, please use the

Tidelift security contact.

Tidelift will coordinate the fix and disclosure.