vittoridavide / react-native-barcode-creator Goto Github PK
View Code? Open in Web Editor NEWReact Native Barcode Creator creates different type of barcodes including EAN13, CODE128, PDF417, UPCA, QR and AZTEC.
License: MIT License
React Native Barcode Creator creates different type of barcodes including EAN13, CODE128, PDF417, UPCA, QR and AZTEC.
License: MIT License
error
› Preparing react-native Pods/React-Core-AccessibilityResources » ResourceBundle-AccessibilityResources-React-Core-Info.plist
❌ (node_modules/react-native-barcode-creator/ios/BarcodeCreatorViewManager.swift:17:25)
15 | ]
16 | }
> 17 | @objc override func requiresMainQueueSetup() -> Bool {
| ^ method does not override any method from its superclass
18 | return true
19 | }
20 | }
› Compiling react-native-barcode-creator Pods/react-native-barcode-creator » CIEANBarcodeGenerator.swift
› Compiling react-native-barcode-creator Pods/react-native-barcode-creator » BarcodeCreatorViewManager.swift
❌ (node_modules/react-native-barcode-creator/ios/BarcodeCreatorViewManager.swift:17:25)
15 | ]
16 | }
> 17 | @objc override func requiresMainQueueSetup() -> Bool {
| ^ method does not override any method from its superclass
18 | return true
19 | }
20 | }
First thank you for building this package.
With latest expo when using this package the following warning is displayed:
Module BarcodeCreatorViewManager requires main queue setup since it overrides `constantsToExport` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
To fix this I believe you can do the following (after reading this link, react-native-share/react-native-share#330)
After the function constantsToExport in file BarcodeCreatorViewManager.swift
@objc
override func constantsToExport() -> [AnyHashable : Any]! {
return ["AZTEC": "CIAztecCodeGenerator",
"CODE128": "CICode128BarcodeGenerator",
"PDF417": "CIPDF417BarcodeGenerator",
"QR": "CIQRCodeGenerator",
"EAN13": "CIEANBarcodeGenerator",
"UPCA": "CIEANBarcodeGenerator"
]
}
add:
@objc override func requiresMainQueueSetup() -> Bool {
return true
}
Is there any option to resolve this issue?
Getting an android build issue after upgrading my app to 0.71.14
Looks like the auto linking is failing, I think.
react-native-barcode-creator:verifyReleaseResources FAILED
ERROR: .../node_modules/react-native-barcode-creator/android/build/intermediates/merged_res/release/values/values.xml:2717: AAPT: error: resource android:attr/lStar not found.
I am getting error while building apk for android. This is the error message:
`*What went wrong:
Execution failed for task ':react-native-barcode-creator:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:D:\ReactNative\IndotoolStore\node_modules\react-native-barcode-creator\android\build\intermediates\merged_res\release\values\values.xml:2717: AAPT: error: resource android:attr/lStar not found.`
and this is my installed dependencies:
"dependencies": {
"@notifee/react-native": "^7.4.0",
"@react-native-async-storage/async-storage": "^1.17.11",
"@react-native-clipboard/clipboard": "^1.11.1",
"@react-native-community/netinfo": "^9.3.7",
"@react-navigation/bottom-tabs": "^6.5.3",
"@react-navigation/native": "^6.1.2",
"@react-navigation/native-stack": "^6.9.8",
"@tanstack/react-query": "^4.24.4",
"axios": "^0.27.2",
"crypto-js": "^3.3.0",
"react": "18.2.0",
"react-hook-form": "^7.43.1",
"react-native": "0.71.2",
"react-native-barcode-creator": "^0.1.5",
"react-native-linear-gradient": "^2.6.2",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.19.0",
"react-native-svg": "^13.7.0",
"react-native-vector-icons": "^9.2.0"
}
Hi, i have an error with my compileSdkVersion version 33
What went wrong:
Could not determine the dependencies of task ':react-native-barcode-creator:bundleLibCompileToJarDebug'.
Could not create task ':react-native-barcode-creator:compileDebugJavaWithJavac'.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above
the version in the build.gradle needs to be updated to 33, it is now at 29
null is not an object (evaluating '_reactNative.NativeModules.BarcodeCreatorViewManager.getConstants')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.