feat: Add FPS Counter to Android (enableFpsGraph
) (#2460)
* feat: Add FPS Counter to Android (`enableFpsGraph`) * feat: Add FPS View * Update FpsCounterView.kt * Implement actual graph * fix layout * Update FpsGraphView.kt * Update CameraPage.tsx
This commit is contained in:
@@ -79,6 +79,11 @@ class CameraViewManager : ViewGroupManager<CameraView>() {
|
||||
view.enableZoomGesture = enableZoomGesture
|
||||
}
|
||||
|
||||
@ReactProp(name = "enableFpsGraph")
|
||||
fun setEnableFpsGraph(view: CameraView, enableFpsGraph: Boolean) {
|
||||
view.enableFpsGraph = enableFpsGraph
|
||||
}
|
||||
|
||||
@ReactProp(name = "videoStabilizationMode")
|
||||
fun setVideoStabilizationMode(view: CameraView, videoStabilizationMode: String?) {
|
||||
val newMode = VideoStabilizationMode.fromUnionValue(videoStabilizationMode)
|
||||
|
Reference in New Issue
Block a user