Git Product home page Git Product logo

react-native-barcode-creator's Introduction

vittoridavide's GitHub stats

react-native-barcode-creator's People

Contributors

alextoudic avatar alserk avatar bret-betcha avatar vittoridavide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-barcode-creator's Issues

method does not override any method from its superclass

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 | }

Yellow Box warning package needs 'requires main queue setup' when running react-native-barcode-creator

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
}

React Native v0.71.14

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.

Error Build

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"
}

Android build error with latest compileSdkVersion version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.