1.0.1 • Published 4 months ago

react-native-webcam v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

react-native-webcam

Description

react-native-webcam is a native module for React Native that provides access to available webcams on macOS. This module is specifically designed for macOS applications built with React Native.

Features

  • List available webcams on macOS
  • Retrieve webcam names and identifiers
  • Optimized for React Native macOS

Installation

To install the package, use npm or yarn:

npm install react-native-webcam

or

yarn add react-native-webcam

After installation, navigate to the macos directory and install the required dependencies:

cd macos && pod install && cd ..

Usage

Import the module and use it in your React Native macOS project:

import WebCam from 'react-native-webcam';

WebCam.getWebcams()
  .then((webcams) => console.log('Available webcams:', webcams))
  .catch((error) => console.error('Error:', error));

Requirements

  • macOS 10.12 or later
  • React Native macOS
  • CocoaPods installed

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License.

1.0.1

4 months ago

1.0.0

4 months ago