BlinkID / blinkid-react-native

ID scanning for cross-platform apps built with ReactNative.
175 stars 59 forks source link

type declaration for BlinkId #188

Open pedropankaj opened 2 years ago

pedropankaj commented 2 years ago

Hi

I am facing type declaration for blinkid :

Could not find a declaration file for module 'blinkid-react-native'. '/Users/*/Documents/ReactNativeProject//node_modules/blinkid-react-native/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/blinkid-react-native if it exists or add a new declaration (.d.ts) file containing declare module 'blinkid-react-native';

plz help

anjapenic commented 2 years ago

Hi @pedropankaj,

Could you please describe the steps you made when implementing the module in your project?

Best regards, Anja

pedropankaj commented 2 years ago

Hi @pedropankaj,

Could you please describe the steps you made when implementing the module in your project?

Best regards, Anja

you does'nt have typescript packages for blinkid-react-native. plz provide

anjapenic commented 2 years ago

Hello @pedropankaj,

Could you please confirm that you've followed these steps https://github.com/BlinkID/blinkid-react-native#installation? Do you have git lfs installed?

Best regards, Anja

msegers commented 2 years ago

@anjapenic @pedropankaj afaik, it's just typescript complaining about the typings, which are indeed not bundled by BlinkID, I think in earlier issues someone suggested you add them yourself, that's what we did (won't bother sharing, ours is only complete for the parts we use, and likely not even entirely correct 😅).

OrLevy23 commented 2 years ago

@msegers would glad if you share it. would be really helpful

anjapenic commented 2 years ago

Hello @OrLevy23,

Please refer to this reply to check out the two options here.

Regards, Anja

AbijahKaj commented 1 year ago

I was looking for types too, ended up creating this gist https://gist.github.com/AbijahKaj/42d848cb9a9cdb6fb0804baf82da7f3d (just place the file in the project).

tgreco commented 2 weeks ago

4 years later @mparadina ... did you learn Typescript yet or are you still as junior as you were in 2021? This project looks really bad... the example code is atrocious