react-native-vision-camera/example/package.json
Marc Rousavy ad5e131f6a
feat: frameProcessorFps="auto" and automatic performance suggestions (throttle or increase FPS) (#393)
* Add `onFrameProcessorPerformanceSuggestionAvailable` and make `frameProcessorFps` support `auto`

* Implement performance suggestion and auto-adjusting

* Fix FPS setting, evaluate correctly

* Floor suggested FPS

* Remove `console.log` for frame drop warnings.

* Swift format

* Use `30` magic number

* only call if FPS is different

* Update CameraView.swift

* Implement Android 1/2

* Cleanup

* Update `frameProcessorFps` if available

* Optimize `FrameProcessorPerformanceDataCollector` initialization

* Cache call

* Set frameProcessorFps directly (Kotlin setter)

* Don't suggest if same value

* Call suggestion every second

* reset time on set

* Always store 15 last samples

* reset counter too

* Update FrameProcessorPerformanceDataCollector.swift

* Update CameraView+RecordVideo.swift

* Update CameraView.kt

* iOS: Redesign evaluation

* Update CameraView+RecordVideo.swift

* Android: Redesign evaluation

* Update CameraView.kt

* Update REA to latest alpha and install RNScreens

* Fix frameProcessorFps updating
2021-09-06 16:27:16 +02:00

49 lines
1.7 KiB
JSON

{
"name": "react-native-vision-camera-example",
"description": "Example app for react-native-vision-camera",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"setup": "cd ios && bundle install",
"pods": "cd ios && bundle exec pod install",
"lint": "eslint .",
"lint-ci": "yarn lint -f ../node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js",
"typescript": "tsc --noEmit"
},
"dependencies": {
"@react-native-community/blur": "^3.6.0",
"@react-native-community/cameraroll": "^4.0.4",
"@react-native-community/slider": "^3.0.3",
"react": "^17.0.2",
"react-native": "^0.65.1",
"react-native-codegen": "^0.0.7",
"react-native-gesture-handler": "^1.10.3",
"react-native-navigation": "^7.19.0",
"react-native-pressable-opacity": "^1.0.4",
"react-native-reanimated": "^2.3.0-alpha.3",
"react-native-screens": "^3.6.0",
"react-native-static-safe-area-insets": "^2.1.1",
"react-native-vector-icons": "^8.0.0",
"react-native-video": "^5.1.1"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/runtime": "^7.15.3",
"@react-native-community/eslint-config": "^3.0.0",
"@react-native-community/eslint-plugin": "^1.1.0",
"@types/react": "^17.0.19",
"@types/react-native": "^0.64.13",
"@types/react-native-vector-icons": "^6.4.6",
"@types/react-native-video": "^5.0.5",
"babel-plugin-module-resolver": "^4.1.0",
"eslint": "^7.32.0",
"metro-config": "^0.66.2",
"metro-react-native-babel-preset": "^0.66.2",
"prettier": "^2.3.1",
"typescript": "4.3.5"
}
}