Code Monkey home page Code Monkey logo

Comments (7)

Dynamsoft-Henry avatar Dynamsoft-Henry commented on June 16, 2024

Hello @chernandez-bunnings

Thanks for reporting this issue. We are looking at it. I'll let you know if we can resolve the conflicts.

from capture-vision-react-native-samples.

Dynamsoft-Henry avatar Dynamsoft-Henry commented on June 16, 2024

Hello @chernandez-bunnings

We have released a new version v1.1.9 to fix the conflicts. You can try the new version now.

from capture-vision-react-native-samples.

chernandez-bunnings avatar chernandez-bunnings commented on June 16, 2024

Confirming that in version 1.1.9 those ts errors are not raised. Ideally enforcing the types would be great, as I can see this new version defines those types as any in those instances where there were errors. This fix works for now, for me to drop the patch. Thank you for looking into it.

If in the future a more strict type definition is supported that would be very much appreciated.

from capture-vision-react-native-samples.

chernandez-bunnings avatar chernandez-bunnings commented on June 16, 2024

Apologies for providing a false positive confirmation. During my initial test, I didn't experience the issue.
However doing a clean install, we still experience one typing error:
image

$ tsc
Error: node_modules/dynamsoft-capture-vision-react-native/js/DynamsoftCameraView.tsx(46,7): error TS2322: Type 'ComponentType<any>' is not assignable to type 'HostComponent<any>'.
  Type 'ComponentClass<any, any>' is not assignable to type 'HostComponent<any>'.
    Type 'Component<any, any, any>' is not assignable to type 'Component<any, {}, any> & Readonly<NativeMethods>'.
      Type 'Component<any, any, any>' is missing the following properties from type 'Readonly<NativeMethods>': measure, measureInWindow, measureLayout, setNativeProps, and 2 more.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from capture-vision-react-native-samples.

chernandez-bunnings avatar chernandez-bunnings commented on June 16, 2024

Hello @Dynamsoft-Henry, just wondering if there are any updates on this?
We are finalising development work for the barcode scanner. It would be great if we did not have to use a patch to ensure the tsc passes correctly in our ci.
I had a quick look into v1.1.12 and the issues still occurs.

from capture-vision-react-native-samples.

Dynamsoft-Henry avatar Dynamsoft-Henry commented on June 16, 2024

@chernandez-bunnings
Apologize for the late reply. We will fix it as soon as possible.

from capture-vision-react-native-samples.

Dynamsoft-Henry avatar Dynamsoft-Henry commented on June 16, 2024

Hi @chernandez-bunnings
Would you like to share your tsconfig.json file with us. So that we can confirm whether the issue is solved on you end.

from capture-vision-react-native-samples.

Related Issues (10)

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.