📸 A powerful, high-performance React Native Camera library.
MIT License
Bot releases are visible (Hide)
Published by mrousavy 6 months ago
Published by mrousavy 6 months ago
React
, Core
and FrameProcessors
subspecs (#2764) (464ea94)Published by mrousavy 6 months ago
onProviderDisabled
to prevent abstract method crash (b0a5585)minFps
being larger in Range
than maxFps
(#2755) (16ccfdf)ModuleProxy
) actually optional (#2750) (c3098db)enableGpuBuffers
(b751f2d)Published by mrousavy 6 months ago
This is the first beta for Skia Frame Processors! 🥳
You can try this today in your app by using the useSkiaFrameProcessor
hook:
const frameProcessor = useSkiaFrameProcessor((frame) => {
'worklet'
// 1. create blur filter
const blurRadius = 10
const blurFilter = Skia.ImageFilter.MakeBlur(blurRadius, blurRadius, TileMode.Repeat, null)
// 2. wrap blur filter in Paint
const paint = Skia.Paint()
paint.setImageFilter(blurFilter)
// 3. render image with the blur filter paint
frame.render(paint)
}, [])
Note: Skia Frame Processors require react-native-worklets-core 1.1.1 or higher, react-native-reanimated 3.x.x or higher, and react-native-skia 1.2.1 or higher
Note: You might need to set
pixelFormat="rgb"
, as"yuv"
buffers are still work in progress (see https://github.com/Shopify/react-native-skia/pull/2357)
Published by mrousavy 6 months ago
hardware-cost-too-high
error for iOS 16 (56a5c8d)Published by mrousavy 7 months ago
Published by mrousavy 7 months ago
Published by mrousavy 7 months ago
@FastNative
flags to critical Frame Processor methods (ff2005b)RCTDeviceEventEmitter
import for RN 0.71.X (#2692) (8a95414)CREATED
as default lifecycle state (1682bb2)TimeoutException
by using STARTED
lifecycle (5283020)didSessionChangeFromOutside
(5119639)not-compatible-with-outputs
error on Android since CameraX supports StreamSharing (8ad08f3)type
to onShutter
(photo
or snapshot
) (f721d97)enableAutoStabilization
prop as this was deprecated in iOS 13 (72c8c1b).await()
(7ec53f7)Snapshot.ts
(6be93af)sendAvailableDevicesChangedEvent
before module is initialized (b4a9086)androidPreviewViewType
prop (dd56925)cancelRecording
(f51921b)onShutter
event (dd49365)takeSnapshot()
to PreviewView
(e17eb50)ImageAnalysis
) (08d86d4)VideoPipeline
(00155c9)takeSnaphot
on iOS (a638b66)ImageWriter
(f36d304)qualityBalance
(e135b3b)qualityBalance
(158de70)Published by mrousavy 7 months ago
Published by mrousavy 7 months ago
enableLocation={true}
) (#2665) (c8033dd)usePreferredCameraDevice.ts
(#2661) (ebe04b2)Published by mrousavy 7 months ago
Published by mrousavy 7 months ago
CREATED
as default lifecycle state (1682bb2)Published by mrousavy 7 months ago
TimeoutException
by using STARTED
lifecycle (5283020)didSessionChangeFromOutside
(5119639)not-compatible-with-outputs
error on Android since CameraX supports StreamSharing (8ad08f3)Published by mrousavy 8 months ago
type
to onShutter
(photo
or snapshot
) (f721d97)enableAutoStabilization
prop as this was deprecated in iOS 13 (72c8c1b).await()
(7ec53f7)Snapshot.ts
(6be93af)sendAvailableDevicesChangedEvent
before module is initialized (b4a9086)Published by mrousavy 8 months ago
Precapture timed out after 5 seconds
error (#2586) (369cb4a)VisionCameraScheduler::trigger
by locking mutex in dispatchAsync
(#2591) (55992bb)measure
and layout
manually in PreviewView (#2588) (7ac6f4d)0x0
as a fallback Size if SENSOR_INFO_PHYSICAL_SIZE
is null (e.g. on USB cameras) (#2608) (e8dd1e0)Published by mrousavy 8 months ago
androidPreviewViewType
prop (dd56925)cancelRecording
(f51921b)onShutter
event (dd49365)takeSnapshot()
to PreviewView
(e17eb50)ImageAnalysis
) (08d86d4)VideoPipeline
(00155c9)Precapture timed out after 5 seconds
error (#2586) (369cb4a)VisionCameraScheduler::trigger
by locking mutex in dispatchAsync
(#2591) (55992bb)takeSnaphot
on iOS (a638b66)ImageWriter
(f36d304)qualityBalance
(e135b3b)measure
and layout
manually in PreviewView (#2588) (7ac6f4d)0x0
as a fallback Size if SENSOR_INFO_PHYSICAL_SIZE
is null (e.g. on USB cameras) (#2608) (e8dd1e0)Published by mrousavy 8 months ago
cancelRecording
(677c01b)Published by mrousavy 8 months ago
onShutter
event (edc001a)qualityBalance
(0b11ab2)Published by mrousavy 8 months ago