You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
After to use this plugin for a long time, we updated to the last version our RN project and also this plugin version, and after that when we call the view to open the camera, we receive this error message:
(NOBRIDGE) ERROR Warning: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
To Reproduce
import { CameraScreen } from 'react-native-camera-kit';
Describe the bug
A clear and concise description of what the bug is.
After to use this plugin for a long time, we updated to the last version our RN project and also this plugin version, and after that when we call the view to open the camera, we receive this error message:
(NOBRIDGE) ERROR Warning: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
To Reproduce
import { CameraScreen } from 'react-native-camera-kit';
async function QRcodeReaded(barcode) {
...
}
return (
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
style={styles.container}>
.
.
.
Expected behavior
Jus open the camera screen to read the qrcode
Screenshots
If the issue is a visual glitch or UI issue please provide screen shots.
Desktop (please complete the following information):
System:
OS: macOS 15.1.1
CPU: (12) arm64 Apple M2 Max
Memory: 124.75 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.10.0
path: ~/.nvm/versions/node/v22.10.0/bin/node
Yarn:
version: 3.6.4
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.0
path: ~/.nvm/versions/node/v22.10.0/bin/npm
Watchman:
version: 2024.07.15.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 22.0.2
path: /opt/homebrew/opt/openjdk/bin/javac
Ruby:
version: 3.1.4
path: /Users/ademir/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.3
wanted: 0.76.3
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Additional context
There is something to be changed in our code? thank you guys!
The text was updated successfully, but these errors were encountered: