Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
expo-camera
Advanced tools
The expo-camera package is a part of the Expo ecosystem and provides a comprehensive API for accessing and using the device's camera in React Native applications. It allows developers to capture photos, record videos, and access various camera settings and features.
Capture Photos
This feature allows you to capture photos using the device's camera. The code sample demonstrates how to set up the Camera component and take a picture when a button is pressed.
```javascript
import React, { useRef } from 'react';
import { View, Button } from 'react-native';
import { Camera } from 'expo-camera';
export default function App() {
const cameraRef = useRef(null);
const takePicture = async () => {
if (cameraRef.current) {
const photo = await cameraRef.current.takePictureAsync();
console.log(photo);
}
};
return (
<View style={{ flex: 1 }}>
<Camera style={{ flex: 1 }} ref={cameraRef} />
<Button title="Take Picture" onPress={takePicture} />
</View>
);
}
```
Record Videos
This feature allows you to record videos using the device's camera. The code sample demonstrates how to set up the Camera component and start/stop video recording when a button is pressed.
```javascript
import React, { useRef, useState } from 'react';
import { View, Button } from 'react-native';
import { Camera } from 'expo-camera';
export default function App() {
const cameraRef = useRef(null);
const [isRecording, setIsRecording] = useState(false);
const recordVideo = async () => {
if (cameraRef.current) {
if (isRecording) {
cameraRef.current.stopRecording();
} else {
setIsRecording(true);
const video = await cameraRef.current.recordAsync();
console.log(video);
setIsRecording(false);
}
}
};
return (
<View style={{ flex: 1 }}>
<Camera style={{ flex: 1 }} ref={cameraRef} />
<Button title={isRecording ? "Stop Recording" : "Record Video"} onPress={recordVideo} />
</View>
);
}
```
Access Camera Settings
This feature allows you to access and modify camera settings such as switching between the front and back cameras. The code sample demonstrates how to request camera permissions and toggle the camera type.
```javascript
import React, { useState, useEffect } from 'react';
import { View, Text } from 'react-native';
import { Camera } from 'expo-camera';
export default function App() {
const [hasPermission, setHasPermission] = useState(null);
const [cameraType, setCameraType] = useState(Camera.Constants.Type.back);
useEffect(() => {
(async () => {
const { status } = await Camera.requestPermissionsAsync();
setHasPermission(status === 'granted');
})();
}, []);
if (hasPermission === null) {
return <View />;
}
if (hasPermission === false) {
return <Text>No access to camera</Text>;
}
return (
<View style={{ flex: 1 }}>
<Camera style={{ flex: 1 }} type={cameraType} />
<Button
title="Flip Camera"
onPress={() => {
setCameraType(
cameraType === Camera.Constants.Type.back
? Camera.Constants.Type.front
: Camera.Constants.Type.back
);
}}
/>
</View>
);
}
```
The react-native-camera package is a popular alternative to expo-camera. It provides similar functionalities such as capturing photos, recording videos, and accessing camera settings. However, it requires linking and additional setup compared to the more streamlined experience of expo-camera within the Expo ecosystem.
The react-native-vision-camera package offers advanced camera functionalities, including frame processing and integration with machine learning models. It is more feature-rich compared to expo-camera but also requires more complex setup and configuration.
If you're using Cocoapods, add the dependency to your Podfile
:
pod 'EXCamera'
and run pod install
.
Libraries
➜ Add Files to [your project's name]
node_modules
➜ expo-camera
and add EXCamera.xcodeproj
libEXCamera.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
).android/settings.gradle
:
include ':expo-camera'
project(':expo-camera').projectDir = new File(rootProject.projectDir, '../node_modules/expo-camera/android')
and if not already included
include ':expo-permissions-interface'
project(':expo-permissions-interface').projectDir = new File(rootProject.projectDir, '../node_modules/expo-permissions-interface/android')
android/app/build.gradle
:
compile project(':expo-camera')
and if not already included
compile project(':expo-permissions-interface')
A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With use of Camera
one can also take photos and record videos that are saved to the app's cache. Morever, the component is also capable of detecting faces and bar codes appearing on the preview.
Note: Only one Camera preview is supported by this library right now. When using navigation, the best practice is to unmount previously rendered
Camera
component so next screens can use camera without issues.
Note: Android devices can use one of two available Camera apis underneath. This was previously chosen automatically, based on the device's Android system version and camera hardware capabilities. As we experienced some issues with Android's Camera2 API, we decided to choose the older API as a default. However, using the newer one is still possible through setting
useCamera2Api
prop to true. The change we made should be barely visible - the only thing that is not supported using the old Android's API is setting focus depth.
Requires Permissions.CAMERA
. Video recording requires Permissions.AUDIO_RECORDING
. (See expo-permissions
package).
import React from 'react';
import { Text, View, TouchableOpacity } from 'react-native';
import { Permissions } from 'expo-permissions';
import { Camera } from 'expo-camera';
export default class CameraExample extends React.Component {
state = {
hasCameraPermission: null,
type: Camera.Constants.Type.back,
};
async componentWillMount() {
const { status } = await Permissions.askAsync(Permissions.CAMERA);
this.setState({ hasCameraPermission: status === 'granted' });
}
render() {
const { hasCameraPermission } = this.state;
if (hasCameraPermission === null) {
return <View />;
} else if (hasCameraPermission === false) {
return <Text>No access to camera</Text>;
} else {
return (
<View style={{ flex: 1 }}>
<Camera style={{ flex: 1 }} type={this.state.type}>
<View
style={{
flex: 1,
backgroundColor: 'transparent',
flexDirection: 'row',
}}>
<TouchableOpacity
style={{
flex: 0.1,
alignSelf: 'flex-end',
alignItems: 'center',
}}
onPress={() => {
this.setState({
type:
this.state.type === Camera.Constants.Type.back
? Camera.Constants.Type.front
: Camera.Constants.Type.back,
});
}}>
<Text style={{ fontSize: 18, marginBottom: 10, color: 'white' }}> Flip </Text>
</TouchableOpacity>
</View>
</Camera>
</View>
);
}
}
}
Camera facing. Use one of Camera.Constants.Type
. When Type.front
, use the front-facing camera. When Type.back
, use the back-facing camera. Default: Type.back
.
Camera flash mode. Use one of Camera.Constants.FlashMode
. When on
, the flash on your device will turn on when taking a picture, when off
, it won't. Setting to auto
will fire flash if required, torch
turns on flash during the preview. Default: off
.
State of camera auto focus. Use one of Camera.Constants.AutoFocus
. When on
, auto focus will be enabled, when off
, it wont't and focus will lock as it was in the moment of change but it can be adjusted on some devices via focusDepth
prop.
A value between 0 and 1 being a percentage of device's max zoom. 0 - not zoomed, 1 - maximum zoom. Default: 0.
Camera white balance. Use one of Camera.Constants.WhiteBalance
: auto
, sunny
, cloudy
, shadow
, fluorescent
, incandescent
. If a device does not support any of these values previous one is used.
Distance to plane of sharpest focus. A value between 0 and 1: 0 - infinity focus, 1 - focus as close as possible. Default: 0. For Android this is available only for some devices and when useCamera2Api
is set to true.
Android only. A string representing aspect ratio of the preview, eg. 4:3
, 16:9
, 1:1
. To check if a ratio is supported by the device use getSupportedRatiosAsync
. Default: 4:3
.
Callback invoked when camera preview has been set.
Callback invoked with results of face detection on the preview. It will receive an object containing:
faceID
).{ x: number, y: number }
) -- position of the top left corner of a square containing the face in view coordinates,{ width: number, height: number }
) -- size of the square containing the face in view coordinates,{ x: number, y: number}
) -- position of the left ear in view coordinates,{ x: number, y: number}
) -- position of the right ear in view coordinates,{ x: number, y: number}
) -- position of the left eye in view coordinates,{ x: number, y: number}
) -- position of the right eye in view coordinates,{ x: number, y: number}
) -- position of the left cheek in view coordinates,{ x: number, y: number}
) -- position of the right cheek in view coordinates,{ x: number, y: number}
) -- position of the center of the mouth in view coordinates,{ x: number, y: number}
) -- position of the left edge of the mouth in view coordinates,{ x: number, y: number}
) -- position of the right edge of the mouth in view coordinates,{ x: number, y: number}
) -- position of the nose base in view coordinates.smilingProbability
, leftEyeOpenProbability
and rightEyeOpenProbability
are returned only if faceDetectionClassifications
property is set to .all
.
Positions of face landmarks are returned only if faceDetectionLandmarks
property is set to .all
.
See also FaceDetector
component.
Mode of the face detection. Use one of Camera.Constants.FaceDetection.Mode.{fast, accurate}
.
Whether to detect landmarks on the faces. Use one of Camera.Constants.FaceDetection.Landmarks.{all, none}
. See FaceDetector documentation for details.
Whether to run additional classifications on the faces. Use one of Camera.Constants.FaceDetection.Classifications.{all, none}
. See FaceDetector documentation for details.
Callback invoked when camera preview could not been started. It is provided with an error object that contains a message
.
Callback that is invoked when a bar code has been successfully read. The callback is provided with an Object of the shape { type: string, data: string }
, where the type refers to the bar code type that was scanned and the data is the information encoded in the bar code (in this case of QR codes, this is often a URL)
An array of bar code types. Usage: Camera.Constants.BarCodeType.<codeType>
where codeType
is one of the listed above. Default: all supported bar code types. For example: barCodeTypes={[Camera.Constants.BarCodeType.qr]}
Android only. Whether to use Android's Camera2 API. See Note
at the top of this page.
To use methods that Camera exposes one has to create a components ref
and invoke them using it.
// ...
<Camera
ref={ref => {
this.camera = ref;
}}
/>;
// ...
snap = async () => {
if (this.camera) {
let photo = await this.camera.takePictureAsync();
}
};
takePictureAsync
Takes a picture and saves it to app's cache directory. Photos are rotated to match device's orientation and scaled to match the preview. Anyway on Android it is essential to set ratio
prop to get a picture with correct dimensions.
options (object) --
A map of options:
Returns a Promise that resolves to an object: { uri, width, height, exif, base64 }
where uri
is a URI to the local image file (useable as the source for an Image
element) and width, height
specify the dimensions of the image. base64
is included if the base64
option was truthy, and is a string containing the JPEG data of the image in Base64--prepend that with 'data:image/jpg;base64,'
to get a data URI, which you can use as the source for an Image
element for example. exif
is included if the exif
option was truthy, and is an object containing EXIF data for the image--the names of its properties are EXIF tags and their values are the values for those tags.
The local image URI is temporary. Use Expo.FileSystem.copyAsync
to make a permanent copy of the image.
recordAsync
Starts recording a video that will be saved to cache directory. Videos are rotated to match device's orientation. Flipping camera during a recording results in stopping it.
options (object) --
A map of options:
Camera.Constants.VideoQuality['<value>']
, possible values: for 16:9 resolution 2160p
, 1080p
, 720p
, 480p
(Android only) and for 4:3 4:3
(the size is 640x480). If the chosen quality is not available for a device, the highest available is chosen.Returns a Promise that resolves to an object containing video file uri
property. The Promise is returned if stopRecording
was invoked, one of maxDuration
and maxFileSize
is reached or camera preview is stopped.
stopRecording
Stops recording if any is in progress.
getSupportedRatiosAsync
Android only. Get aspect ratios that are supported by the device and can be passed via ratio
prop.
Returns a Promise that resolves to an array of strings representing ratios, eg. ['4:3', '1:1']
.
Bar code format | iOS | Android |
---|---|---|
aztec | Yes | Yes |
codabar | No | Yes |
code39 | Yes | Yes |
code93 | Yes | Yes |
code128 | Yes | Yes |
code138 | Yes | No |
code39mod43 | Yes | No |
datamatrix | Yes | Yes |
ean13 | Yes | Yes |
ean8 | Yes | Yes |
interleaved2of5 | Yes | No |
itf14 | Yes* | Yes |
maxicode | No | Yes |
pdf417 | Yes | Yes |
rss14 | No | Yes |
rssexpanded | No | Yes |
upc_a | No | Yes |
upc_e | Yes | Yes |
upc_ean | No | Yes |
qr | Yes | Yes |
interleaved2of5
.51.0.0 — 2024-05-07
expo-auth-session
expoClientId
field from auth proxy. (#28590 by @EvanBacon)expo-barcode-scanner
expo-barcode-scanner
is now deprecated. Please use expo-camera
instead. (#26025 by @alanjhughes)expo-constants
expo-face-detector
expo-face-detector
is now deprecated. We recommed using react-native-vision-camera instead. (#26026 by @alanjhughes)expo-location
expo-local-authentication
expo-modules-core
expo-sms
sendSMSAsync
now throws error code ERR_UNAVAILABLE
instead of E_SMS_UNAVAILABLE
. (#27437 by @EvanBacon)expo-sqlite
expo-barcode-scanner
BarCodeScannerResult
now returns an additional raw
field corresponding to the barcode value as it was encoded in the barcode without parsing. Will always be undefined on iOS. (#25391 by @ajacquierbret)expo-blur
expo-asset
expo-camera
BarCodeAnalyzer
now passes an additional raw
field to its onComplete
callback, corresponding to the barcode value as it was encoded in the barcode without parsing. Will always be undefined on iOS. (#25391 by @ajacquierbret)false
instead of permission messages. (#28107 by @EvanBacon)pictureSize
prop to CameraView
component. (#27664 by @alanjhughes)NSMicrophoneUsageDescription
and ignore the mute
prop if they don't intend to use video. (#28156 by @alanjhughes)animateShutter
prop to provide feedback when a picture is taken. Also added shutter sound on android. (#28211 by @alanjhughes)expo-constants
expo-crypto
expo-contacts
expo-font
expo-file-system
expo-haptics
rigid
and soft
impact types (#28169 by @rodperottoni)expo-image-picker
false
instead of permission messages. (#28107 by @EvanBacon)legacy
option to ImagePickerOptions
to allow using the legacy image picker on android. (#28514 by @alanjhughes)expo-image-manipulator
expo-linear-gradient
expo-keep-awake
expo-location
formattedAddress
to the LocationGeocodedAddress
. (#26342 by @whysetiawan & @lukmccall) (#26342 by @whysetiawan, @lukmccall) (#26342, #26342 by @whysetiawan, @lukmccall, @whysetiawan, @lukmccall)isAndroidForegroundServiceEnabled
config plugin option #27265 by @brentvatne)false
instead of permission messages. (#28107 by @EvanBacon)expo-localization
expo-local-authentication
expo-network
expo-modules-core
Date
type converter. (#26148 by @alanjhughes)PlatformColor
and DynamicColorIOS
color props. (#26724 by @dlindenkreuz)BarCodeScannerResult
interface now declares an additional raw
field corresponding to the barcode value as it was encoded in the barcode without parsing. Will always be undefined on iOS. (#25391 by @ajacquierbret)createWebModule
function to wrap web functionality with the NativeModule class. (#27739 by @aleqsio)expo.SharedObject
) with a simple mechanism to release native pointer from JS. (#27038 by @tsapeta & #27331 by @lukmccall) (#27038, #27331 by @tsapeta, @lukmccall)AnyExpoView
(#27284 by @dominicstop)startObserving
and stopObserving
in the new EventEmitter
class. (#27393 by @tsapeta)NativeModule
class that inherits from EventEmitter
. (#27510 by @tsapeta)OnStartObserving
and OnStopObserving
can now be attached to a specific event. (#27766 by @tsapeta)reloadAppAsync
to reload the app. (#28400 by @kudo)expo-media-library
expo-screen-capture
expo-secure-store
false
instead of permission messages. (#28107 by @EvanBacon)canUseBiometricAuthentication
function. (#26767 by @behenate)expo-store-review
StoreReview.isAvailableAsync()
on iOS now resolves to false
for apps distributed through TestFlight. (#25900 by @gabrieldonadel)expo-sqlite
SQLiteStatement.executeForRawResultAsync()
in expo-sqlite/next
API which returns array based raw values than key-value based row value. (#26073 by @kudo)expo.sqlite.customBuildFlags
gradle property to support custom sqlite3 building flags. (#27385 by @kudo)serializeAsync()
and deserializeDatabaseAsync()
to serialze and deserialize databases. (#27422 by @kudo)SQLiteProvider.assetSource
to import an existing database from assets. (#28291 by @kudo)expo-av
Events
to AVModule
to prevent event emitter warning. (#26434 by @alanjhughes)AVManager
. (#28159 by @lukmccall)HashMap cannot be cast to ReadableNativeMap
error on Android. (#28317 by @lukmccall)expo-blur
setNativeProps
being removed. (#27721 by @EvanBacon)expo-asset
unstable_path
in development. (#26084 by @EvanBacon)TypeError: (0, _ExpoAsset.downloadAsync) is not a function
when loading assets using Expo Web. (#28405 by @jamiees2)downloadAsync()
does not support Android resources from release builds. (#28604 by @kudo)expo-calendar
expo-camera
iOS
, barcode types were not converted correctly causing the scanner to not start immediately. (#26704 by @alanjhughes)iOS
, fix maxDuration
timescale on videos. (#26882 by @alanjhughes)Android
, fix the camera not being released when the view is destroyed. (#27086 by @alanjhughes)iOS
, fix the orientation value in onResponsiveOrientationChanged
when exif
is set to true. (#27314 by @alanjhughes)Android
, fix empty qualities being passed to QualitySelector (#27126 by @leonhh)web
, prevent creating a webworker when rendering on the server (#27222 by @marklawlor)iOS
, fix method call on an optional variable. (#27235 by @alanjhughes)flash
being passed to native. (#27394 by @alanjhughes)mute
prop is passed to native so it is correctly initialiased even when not provided from JS. (#27546 by @alanjhughes)iOS
, fix camera orientation on initial render. (#27545 by @alanjhughes)iOS
, fix an issue where the configuration can be interuppted when the dev menu is presented on intial launch. (#27572 by @alanjhughes)iOS
, fix getAvailablePictureSizes
in the legacy package. (#27642 by @alanjhughes)iOS
where the barcode types did not match the typescript representation. Also enabled scanning upc_a
codes on iOS
. (#28233 by @alanjhughes)iOS
, fixed regression where recording a video captures dark frames. Reduced frequency of camera initialization. (#28427 by @alanjhughes)expo-constants
expo-contacts
expo-device
Device.productName
now returns Build.PRODUCT
instead of Build.DEVICE
. (#27230 by @alex-fournier)expo-font
expo-file-system
iOS
, set httpMethod
on upload requests. (#26516 by @alanjhughes)iOS
, fix upload task requests. (#26880 by @alanjhughes)iOS
, fix an issue with copyAsync
where the copy fails if it is a photo library asset. (#27208 by @alanjhughes)iOS
, resolve the promise manually after copying a PHAsset file. (#27381 by @alanjhughes)CookieHandler
as it's no longer in the module registry and not necessary. (#28145 by @alanjhughes)expo-gl
react-native-reanimated
. (#28414 by @lukmccall)expo-image-picker
fileSize
was named filesize
which did not match the docs & typescript definition. (#27293 by @WookieFPV) (#27293 by @wookieFPV)expo-intent-launcher
double
. However, it must be int
. (#26164 by @Alperengozum)expo-location
expo-task-manager
module for methods that don't use it. (#26200 by @behenate)NullPointerException: it must not be null
. (#26688 by @lukmccall)Android
, prevent location service from starting when permission is not in the manifest. (#27355 by @alanjhughes)expo-localization
expo-modules-core
OnCreate
was called before the React
instance was ready. (#25866 by @lukmccall)SharedObjectRegistry
crash for accessing internal data structures from multi-threads. (#25997 by @kudo)SharedObject
leakage on Android. (#25995 by @kudo)Enumerable
. (#26108 by @alanjhughes)Serializable
types are not obfuscated. (#26545 by @alanjhughes)onCreate
before OnActivityEntersForeground
event. (#26944 by @lukmccall)RCTHost
is not retained on iOS bridgeless mode. (#27715 by @kudo)recreateRootViewWithBundleURL
parameters. (#27989 by @gabrieldonadel)ExpoBridgeModule.installModules()
is broken on Android and bridgeless mode. (#28065 by @kudo)expo::MethodMetadata::convertJSIArgsToJNI
. (#28163 by @lukmccall)TypeError: Cannot read property 'NativeModule' of undefined
exceptions on Android. (#28200 by @kudo)fallbackToCacheTimeout
. (#28227 by @kudo)EXJavaScriptObject
accesses to dangling pointers. (#28262 by @kudo)AppContext.onHostResume()
sometimes getting null currentActivity
on Android. (#28338 by @kudo)std::shared_ptr<JavaCalllback::CallbackContext>::__on_zero_shared
. (#28483 by @lukmccall)field operation on NULL object
when reloading the app. (#28555 by @lukmccall)expo-media-library
default
as sorting key. (#28328 by @aleqsio)expo-notifications
expo-notifications
requiring the expo-task-manager
module to start. (#26227 by @behenate)UnavailabilityError
when trying to use setNotificationCategoryAsync
on web. (#26511 by @marklawlor).native
hardcoded platform imports (#26511 by @marklawlor)Android
, added events to module definition to clear warnings. (#26654 by @alanjhughes)expo-screen-capture
DETECT_SCREEN_CAPTURE
permission. (#27148 by @alanjhughes)expo-screen-orientation
expo-sensors
Android
, add event name to definition in the DeviceMotionModule
. (#26679 by @alanjhughes)expo-store-review
expo-task-manager
Android
, added events to module definition to clear warnings. (#26654 by @alanjhughes)expo-sqlite
NativeStatementBinding
leakage on Android. (#25996 by @kudo)SQLiteDatabase.getAllAsync()
in expo-sqlite/next API. (#26344 by @kudo)expo-sqlite/next
cannot be imported from an ESM project. (#27423 by @kudo)NullPointerException
on Android when opening the same database multiple times. (#27748 by @kudo)expo-video-thumbnails
expo-web-browser
iOS
, fix an issue where rapidly opening and closing the browser would leave the module in a bad state, preventing opening the browser again. (#28452 by @alanjhughes)expo-application
expo-av
com.facebook.react:react-native:+
Android dependency with com.facebook.react:react-android
. (#26237 by @kudo)name
property. (#27437 by @EvanBacon)expo-background-fetch
name
property. (#27437 by @EvanBacon)expo-auth-session
expo-battery
name
property. (#27437 by @EvanBacon)expo-brightness
name
property. (#27437 by @EvanBacon)expo-barcode-scanner
name
property. (#27437 by @EvanBacon)expo-blur
expo-asset
downloadAsync
to a native implementation. (#27369 by @aleqsio)expo-calendar
name
property. (#27437 by @EvanBacon)expo-cellular
expo-camera
Barcode
consistent. (#26900 by @alanjhughes)name
property. (#27437 by @EvanBacon)Android
, requesting audio permissions was meant to be optional in the config plugin. (#27365 by @alanjhughes)Android
, only recreate camera after certain props have changed. (#27952 by @alanjhughes)next
package to stable. (#28226 by @alanjhughes)expo-clipboard
expo-constants
expo-crypto
name
property. (#27437 by @EvanBacon)https
. (#26729 by @EvanBacon)expo-contacts
name
property. (#27437 by @EvanBacon)ShareOptions
type for shareContactAsync
parameter typing. (#26208 by @Simek)expo-device
expo-document-picker
name
property. (#27437 by @EvanBacon)expo-font
name
property. (#27437 by @EvanBacon)expo-face-detector
name
property. (#27437 by @EvanBacon)expo-file-system
expo-gl
expo-haptics
name
property. (#27437 by @EvanBacon)expo-image-loader
expo-image-picker
name
property. (#27437 by @EvanBacon).jpeg
in the ImagePicker result. (#26419 by @NikitaDudin)expo-intent-launcher
name
property. (#27437 by @EvanBacon)expo-image-manipulator
name
property. (#27437 by @EvanBacon)expo-linear-gradient
expo-keep-awake
expo-location
expo-localization
expo-local-authentication
name
property. (#27437 by @EvanBacon)expo-mail-composer
expo-network
expo-modules-core
1.8.10
to 1.8.22
. (#25945 by @lukmccall)com.facebook.react:react-native:+
Android dependency with com.facebook.react:react-android
. (#26237 by @kudo)expo.modules.core.Promise
. (#27471 by @aleqsio)global.ExpoModules
. (#26027 by @tsapeta)ObjectDeallocator
is now a native state instead of a host object. (#26906 by @tsapeta)SharedObjectRegistry
being a singleton. (#27032 by @tsapeta)EXCreateReactBindingRootView
to create correct React Native setup for New Architecture mode. (#27216 by @kudo)AppContext
in ExpoBridgeModule
. (#27378 by @alanjhughes)EXReactRootViewFactory.createDefaultReactRootView:
to RCTAppDelegate.recreateRootViewWithBundleURL:
category. (#27945 by @kudo)ReactNativeHostHandler.onReactInstanceException()
for client to listen for exceptions on Android. (#27815 by @kudo)expo-font
and nothing else depends on them. (#26380 by @tsapeta)onDidCreateDevSupportManager
handler to support error recovery from expo-updates. (#28177 by @kudo)ExpoReactDelegateHandler.bundleURL
for clients to override newer bundleURL. (#28256 by @kudo)expo-media-library
name
property. (#27437 by @EvanBacon)ACCESS_MEDIA_LOCATION
Android permission should not pulled into by default and should be pulled through Config Plugins. (#28230 by @kudo)expo-notifications
expo-screen-capture
expo-print
name
property. (#27437 by @EvanBacon)expo-random
name
property. (#27437 by @EvanBacon)expo-screen-orientation
name
property. (#27437 by @EvanBacon)expo-sharing
name
property. (#27437 by @EvanBacon)expo-secure-store
name
property. (#27437 by @EvanBacon)expo-sms
name
property. (#27437 by @EvanBacon)expo-speech
expo-sensors
name
property. (#27437 by @EvanBacon)expo-store-review
name
property. (#27437 by @EvanBacon)expo-task-manager
expo-sqlite
onDatabaseChange
event from legacy API as it is not supported natively. (#26655 by @alanjhughes)name
property. (#27437 by @EvanBacon)expo-video-thumbnails
name
property. (#27437 by @EvanBacon)expo-web-browser
androidx.browser:browser
to 1.6.0
#26619 by @zoontekname
property. (#27437 by @EvanBacon)https
. (#26729 by @EvanBacon)compare-urls
and url
dependencies in favor of built-in URL support. (#26702 by @EvanBacon)unimodules-app-loader
FAQs
A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to t
The npm package expo-camera receives a total of 132,590 weekly downloads. As such, expo-camera popularity was classified as popular.
We found that expo-camera demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.