Mindinventory / react-native-tabbar-interaction

Tabbar Component For React-Native
https://www.mindinventory.com/react-native-app-development.php
MIT License
814 stars 171 forks source link

Types error when using with typescript/tsx #37

Closed b-tiwari closed 2 years ago

b-tiwari commented 2 years ago

I am getting below errors when using this awesome package with typescript.

1

I have followed the installation instructions as specified on the package's github page

Even though I do have skipLibCheck: true in tsconfig's compilerOptions and also have 'node_moduels in the excluded list of tsconfig, not sure why getting these errors, most of these are for the type discrepancies in node_modules/@mindinventory/react-native-tab-bar-interaction folder.

2

Please help

akashmi commented 2 years ago

@b-tiwari Please try now with the latest version of react-native-tabbar-interaction lib. we have added typescript support to this lib. Feel free to reopen or create a new issue if you get the same issue.

b-tiwari commented 2 years ago

Thanks for the reply.

yes, I had the most recent version with typescript type defs. I am guessing, the error could be because I have strict and noImplicitAny set to true in my tsconfig which you might have set to false in yours.

I moved on to another library for tabs, not using this any longer. So its not urgent. But you may still want to look into the issue.