Random experiment : Accessing Camera in React Native

Create a new react native project by running the command

Open the App.js folder and delete everything.

Primary idea->

Our app will have two components one PendingView(this is displayed when the camera is not ready) and The App Component .

First thing first create PendingView.js file and add

Now go to android->app ->build.gradle (Do not confuse with the other files)

add the last lines in defaultConfig

In the cmd run->

In App.js add->

Now start the metro builder

Run ->

Output

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why do I want to become a Full-Stack Web Developer?

Evolution of a Node.js API, Zoe.js — Request & Response

Build a Material-UI React Component Library

Drag and Drop File Uploader using Dropzone Library and Vue Component — Laravel

p5.js tutorials — particle systems

Where is my Video?: A Minor Confusion in Rendering Final Cut Pro Videos

Get Started With NodeOS

Simple Java Script Hacks to use everyday !!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nilay Paul

Nilay Paul

More from Medium

React The Next Big Thing

Styling RNW Application with Styled Components

Alternative to React Hook Form

How to create a beautiful toast message component using React and Styled Components?