Description

An example of using the Expo.Camera API. http://github.com/expo/camerja

Comments (28)

coleman333

@coleman333

Could anybody help ? When I launch the camera exact as on example on expo - and I have only black screen with "flip" in left corner

2 weeks ago

edoantonioco

@edoantonioco

All I want to know is how to take a picture, but that snap button isnt on the code

4 weeks ago

Andresh Singh

@sndresh_aingh

@edoantonioco look at the function takePicture in App.js.. It is done by the method takePictureAsync().

3 days ago

gorge2004

@gorge2004

hey , i get warning when i use with react navigation, when i navigate into camera , it works but it throws : Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. heelp please

1 month ago

gorge2004

@gorge2004

hey , i get warning when i use with react navigation, when i navigate into camera , it works but it throws :Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.help plse

1 month ago

Karthik

@krthkmyn

Hi, I'm trying to run this locally (npm install; expo start) using expo app on iOS. I see an error "Native module cannot be null". Anyone facing a similar issue? If so how to fix this? thanks.

1 month ago

Fernando Rojo

@nandorojo

@krthkmyn I have the same issue. Downloaded the repo, npm install, expo start, and immediate error. Testing on iOS via Expo App.

1 month ago

Jack Yang

@mangod666

@nandorojo I found that in app.json the sdk version is 29. I changed to 30 and error messages changed. Then I followed https://forums.expo.io/t/cant-find-variable-self/13547 and problem solved.

3 weeks ago

Karthik

@krthkmyn

@mangod666 I'm still having the issue. I fixed the app.json to be "expo": "30.0.0-rc.0" and an install of "whatwg-fetch": "^2.0.4" I still see the problem. Can you please post the app.json and the package.json you have?

2 weeks ago

andy ahn

@andyahn

how can I delete pictures in the gallery??

2 months ago

benbouba

@benbouba

Is there a way to manipulate the field of view of the camera? The expo camera seems a bit zoomed in than the actual phone camera and I want achieve maximum camera field of view.

2 months ago

pirey

@pirey

The app seems not working on my phone, it just shows black screen

2 months ago

Rafah Mehfooz Maker on Expo

@rafah-mehfooz

Can I use it to perform text recognition on android and iOS?

3 months ago

Po Bhattacharyya

@pathicreate

I'm trying to figure out how to get this code to save a captured photo directly to my phone's camera roll. Can someone help me figure out how to do this? Here's the code I have so far - https://github.com/pbhattacharyya/median/blob/master/components/CameraFrame.js I'm using an iPhone 6.

4 months ago

Brandon Roberts Maker on Expo

@notatrojanhorse

This is an awesome example. I have been using expo for a short time and I am extremely impressed with how well everything has been done. Thanks for all of the great code!

5 months ago

cecile

@cecile

"camerja" was that misspelled

5 months ago

Stanisław Chmiela Maker on Expo

@sjchmiela

@cecile The rumor has it that this is to honor the creator of the Expo Camera component Alicja Warchał — @aalices — AlicJA-CamerJA (see what we did there? 😂) https://github.com/expo/expo/commit/7aeadd5a54625e13ed168f397b0dc70ab94cda03

5 months ago

trax Maker on Expo

@trax

Hi, How can I add a screen to validate the picture before recording/saving it?

7 months ago

dev54335@gmail.com

@johnny1234

Uncaught Error: expolib_v1.3.internal.http2.ConnectionShutdownException

7 months ago

Julio Jurado

@julioejurado

OMG, it works! but how can I make it to record video?

8 months ago

Ville Immonen

@fson

@julioejurado You can use `Camera.recordAsync` for that: https://docs.expo.io/versions/latest/sdk/camera.html#recordasync

8 months ago

fausto

@fausto

Had my react native project ejected . Btw expo/camerja looks the way to go. How can I add expo/camerja to my ejected project? Is there a way? thank you

9 months ago

傅天明

@mingtianfu

9 months ago

Jack

@jack2684

Noob question, how do I compile and run this project locally?

10 months ago

Brent Vatne Maker on Expo

@notbrent

@jack2684 - clone https://github.com/expo/camerja then run `npm install` and start it like any other Expo project :) read the installation and up and running guides if you haven't done that before: https://docs.expo.io/versions/latest/introduction/installation.html

10 months ago

Jack

@jack2684

@notbrent Ah thx! It works 👍

10 months ago

Leave a Comment

Scan to open

With an Android phone, you can scan this QR code with your Expo mobile app to load this project immediately.

Open project in the browser

Missing Appetize code

If servers are busy, an Appetize code allows you to skip the line.

To buy an Appetize code, visit Appetize.io and enter the code in the field below

Request a link

Enter your e-mail or phone number below and you will get a link to open the project for your mobile device.

Download Expo Client

Use our iOS or Android app to directly view Expo projects on your phone

Get started with Expo

Dive in and create your first Expo project.