Comments (11)
Same issue on my side while running yarn test
from react-native-vision-camera.
What's the output of npx react-native config
?
from react-native-vision-camera.
here's the npx react-native config
npx react-native config
warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.15.2/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
{
"root": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject",
"reactNativePath": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/node_modules/react-native",
"dependencies": {
"react-native-vision-camera": {
"root": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/node_modules/react-native-vision-camera",
"name": "react-native-vision-camera",
"platforms": {
"ios": {
"podspecPath": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/node_modules/react-native-vision-camera/VisionCamera.podspec",
"configurations": [],
"scriptPhases": []
},
"android": {
"sourceDir": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/node_modules/react-native-vision-camera/android",
"packageImportPath": "import com.mrousavy.camera.CameraPackage;",
"packageInstance": "new CameraPackage()",
"buildTypes": [],
"componentDescriptors": [],
"androidMkPath": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/node_modules/react-native-vision-camera/android/build/generated/source/codegen/jni/Android.mk",
"cmakeListsPath": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/node_modules/react-native-vision-camera/android/build/generated/source/codegen/jni/CMakeLists.txt"
}
}
}
},
"commands": [
{
"name": "log-ios",
"description": "starts iOS device syslog tail"
},
{
"name": "run-ios",
"description": "builds your app and starts it on iOS simulator",
"examples": [
{
"desc": "Run on a different simulator, e.g. iPhone SE (2nd generation)",
"cmd": "react-native run-ios --simulator \"iPhone SE (2nd generation)\""
},
{
"desc": "Run on a connected device, e.g. Max's iPhone",
"cmd": "react-native run-ios --device \"Max's iPhone\""
},
{
"desc": "Run on the AppleTV simulator",
"cmd": "react-native run-ios --simulator \"Apple TV\" --scheme \"helloworld-tvOS\""
}
],
"options": [
{
"name": "--simulator <string>",
"description": "Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: \"iPhone 6 (10.0)\""
},
{
"name": "--mode <string>",
"description": "Explicitly set the scheme configuration to use"
},
{
"name": "--configuration <string>",
"description": "[Deprecated] Explicitly set the scheme configuration to use"
},
{
"name": "--scheme <string>",
"description": "Explicitly set Xcode scheme to use"
},
{
"name": "--device [string]",
"description": "Explicitly set device to use by name. The value is not required if you have a single device connected."
},
{
"name": "--udid <string>",
"description": "Explicitly set device to use by udid"
},
{
"name": "--verbose",
"description": "Do not use xcbeautify or xcpretty even if installed"
},
{
"name": "--port <number>",
"default": 8081
},
{
"name": "--terminal <string>",
"description": "Launches the Metro Bundler in a new window using the specified terminal path.",
"default": "Apple_Terminal"
},
{
"name": "--xcconfig [string]",
"description": "Explicitly set xcconfig to use"
},
{
"name": "--buildFolder <string>",
"description": "Location for iOS build artifacts. Corresponds to Xcode's \"-derivedDataPath\"."
},
{
"name": "--no-packager",
"description": "Do not launch packager while building"
},
{
"name": "--binary-path <string>",
"description": "Path relative to project root where pre-built .app binary lives."
},
{
"name": "--list-devices",
"description": "List all available iOS devices and simulators and let you choose one to run the app. "
}
]
},
{
"name": "build-ios",
"description": "builds your app on iOS simulator",
"examples": [
{
"desc": "Build the app for the IOS simulator",
"cmd": "react-native build-ios"
},
{
"desc": "Build the app for all IOS devices",
"cmd": "react-native build-ios --mode \"Release\""
},
{
"desc": "Build the app for a specific IOS device",
"cmd": "react-native build-ios --simulator \"IPhone 11\""
}
],
"options": [
{
"name": "--simulator <string>",
"description": "Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: \"iPhone 6 (10.0)\""
},
{
"name": "--mode <string>",
"description": "Explicitly set the scheme configuration to use"
},
{
"name": "--configuration <string>",
"description": "[Deprecated] Explicitly set the scheme configuration to use"
},
{
"name": "--scheme <string>",
"description": "Explicitly set Xcode scheme to use"
},
{
"name": "--device [string]",
"description": "Explicitly set device to use by name. The value is not required if you have a single device connected."
},
{
"name": "--udid <string>",
"description": "Explicitly set device to use by udid"
},
{
"name": "--verbose",
"description": "Do not use xcbeautify or xcpretty even if installed"
},
{
"name": "--port <number>",
"default": 8081
},
{
"name": "--terminal <string>",
"description": "Launches the Metro Bundler in a new window using the specified terminal path.",
"default": "Apple_Terminal"
},
{
"name": "--xcconfig [string]",
"description": "Explicitly set xcconfig to use"
},
{
"name": "--buildFolder <string>",
"description": "Location for iOS build artifacts. Corresponds to Xcode's \"-derivedDataPath\"."
}
]
},
{
"name": "log-android",
"description": "starts logkitty"
},
{
"name": "run-android",
"description": "builds your app and starts it on a connected Android emulator or device",
"options": [
{
"name": "--mode <string>",
"description": "Specify your app's build variant"
},
{
"name": "--variant <string>",
"description": "Specify your app's build variant. Deprecated! Use 'mode' instead"
},
{
"name": "--no-packager",
"description": "Do not launch packager while building"
},
{
"name": "--port <number>",
"default": 8081
},
{
"name": "--terminal <string>",
"description": "Launches the Metro Bundler in a new window using the specified terminal path.",
"default": "Apple_Terminal"
},
{
"name": "--tasks <list>",
"description": "Run custom Gradle tasks. By default it's \"assembleDebug\". Will override passed mode and variant arguments."
},
{
"name": "--active-arch-only",
"description": "Build native libraries only for the current device architecture for debug builds.",
"default": false
},
{
"name": "--extra-params <string>",
"description": "Custom properties passed to gradle build command"
},
{
"name": "--appId <string>",
"description": "Specify an applicationId to launch after build. If not specified, `package` from AndroidManifest.xml will be used.",
"default": ""
},
{
"name": "--appIdSuffix <string>",
"description": "Specify an applicationIdSuffix to launch after build.",
"default": ""
},
{
"name": "--main-activity <string>",
"description": "Name of the activity to start",
"default": "MainActivity"
},
{
"name": "--deviceId <string>",
"description": "builds your app and starts it on a specific device/simulator with the given device id (listed by running \"adb devices\" on the command line)."
},
{
"name": "--list-devices",
"description": "Lists all available Android devices and simulators and let you choose one to run the app",
"default": false
},
{
"name": "--binary-path <string>",
"description": "Path relative to project root where pre-built .apk binary lives."
}
]
},
{
"name": "build-android",
"description": "builds your app",
"options": [
{
"name": "--mode <string>",
"description": "Specify your app's build variant"
},
{
"name": "--variant <string>",
"description": "Specify your app's build variant. Deprecated! Use 'mode' instead"
},
{
"name": "--no-packager",
"description": "Do not launch packager while building"
},
{
"name": "--port <number>",
"default": 8081
},
{
"name": "--terminal <string>",
"description": "Launches the Metro Bundler in a new window using the specified terminal path.",
"default": "Apple_Terminal"
},
{
"name": "--tasks <list>",
"description": "Run custom Gradle tasks. By default it's \"assembleDebug\". Will override passed mode and variant arguments."
},
{
"name": "--active-arch-only",
"description": "Build native libraries only for the current device architecture for debug builds.",
"default": false
},
{
"name": "--extra-params <string>",
"description": "Custom properties passed to gradle build command"
}
]
}
],
"healthChecks": [],
"platforms": {
"ios": {},
"android": {}
},
"project": {
"ios": {
"sourceDir": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/ios",
"xcodeProject": {
"name": "VisionCameraProject.xcworkspace",
"isWorkspace": true
}
},
"android": {
"sourceDir": "/Users/ginxx009/Documents/VisionCameraProject/VisionCameraProject/android",
"appName": "app",
"packageName": "com.visioncameraproject"
}
}
}
from react-native-vision-camera.
Hm it did resolve properly - can you try clearing everything/cache to see if that fixes it?
from react-native-vision-camera.
tried clearing it actually and it did not resolve anything . By the way on android it works but on iOS it does not .
from react-native-vision-camera.
same issue =[
from react-native-vision-camera.
What I am trying to do right now is upgrade the react native versions to see where it is compatible .
from react-native-vision-camera.
Hi everyone, I'm not facing the same @ginxx009 error, but there's something wrong here
I'm trying this:
const { hasPermission, requestPermission } = useCameraPermission()
console.log('hasPermission:', hasPermission)
const devices = useCameraDevices()
console.log('devices: ', JSON.stringify(devices))
const device = useCameraDevice('back')
console.log('device:', device)
I've requested permission, and it's ok, but devices are empty, and I cannot set current device
LOG hasPermission: true
LOG devices: []
LOG device: undefined
I've already tried on Simulator and physical device, and got the same problem.
My env:
"react-native": "0.73.4",
"react-native-vision-camera": "3.9.0",
And already "react-native-vision-camera": "3.8.2"
This problems occurs on iOS. On Android the camera appears normally, but cant take photo because got this error
capture/timed-out: (capture/timed-out The image capture was aborted because it timed out.
from react-native-vision-camera.
on 0.72 version of react native I have tried and on iOS and it works
from react-native-vision-camera.
I started encountering the same issue camera-module-not-found
on Android, but it stopped happening once I manually uninstalled the app from the physical device and reinstalled
"react-native": "^0.73.4",
"react-native-vision-camera": "^3.9.0",
from react-native-vision-camera.
Hi everyone . If you are still encountering this problem . What I did was
Make sure that the swift version you are using on your xcode is 5.2 . Mine was default 5.0 so I change it on the build setting of the xcode then rebuild it . And it was working for both iOS and Android.
from react-native-vision-camera.
Related Issues (20)
- 💭 Two separate frame processors at different target FPS HOT 7
- 🐛 [AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces'. HOT 2
- APK Size increase After implementing react-native-vision-camera lib double the apk size HOT 4
- 💭 Why the Photo Result Does Not Come Out in the Specified Aspect Ratio HOT 1
- 🐛 `finally` on a `Promise` stops camera on Android HOT 3
- 🐛 [V4][Android] Release crash: maxImages (6) has already been acquired HOT 1
- 🔧 Not able to build expo dev client when using any of the given frame processing plugin for OCR HOT 2
- 🐛 [Android] isActive change doesn't happen fast enough causing device/camera-already-in-use error when switching to native camera app HOT 1
- 🔧 Execution failed for task ':react-native-vision-camera:compileReleaseKotlin'. HOT 3
- 🔧 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change. HOT 10
- 💭 Android: Frameprocessor HOT 7
- 💭 Focus not work HOT 1
- 🐛 Memory leak Android HOT 6
- 💭 [iOS] Did someone manage to get to reasonable FPS with ML Kit Pose Detection (native frame processor plugin)? HOT 2
- 💭 Lifecycle methods for native frame processors HOT 5
- 💭 How to access GPS location tags in photo metadata? HOT 4
- 🐛 takePhoto() function working very slowly on Android HOT 3
- 🔧 A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction HOT 11
- 💭 How does RNVC interact with OS camera settings? HOT 1
- 💭 Is there a migration guide from V3 to V4? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-vision-camera.