Socket
Book a DemoInstallSign in
Socket

my-react-camera

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-react-camera

camera component with switching devices using react and coverting the image into base64 string

0.1.2
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

My React Camera

A React component for capturing photos using device cameras.

Installation

# Install the package
npm install my-react-camera

# Install peer dependencies
npm install @mui/material @mui/icons-material @emotion/react @emotion/styled

Usage

import { Camera } from "my-react-camera";

function App() {
  const handleCapture = (base64Image) => {
    console.log("Captured image:", base64Image);
  };

  return (
    <div>
      <Camera onCapture={handleCapture} />
    </div>
  );
}

Props

PropTypeDescription
onCapture(base64String: string) => voidCallback function that receives the captured image as a base64 string

Requirements

This package requires the following peer dependencies:

  • React 18 or higher
  • Material-UI v5 or higher
  • Emotion 11 or higher

FAQs

Package last updated on 03 Mar 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.