You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
Hey, for now you should use React.ComponentProps<typeof TabBar> as this library is class based. Later on I will work on a rewrite to functional components. So this will be fixed and will be able to use TabBarProps one.
Current behavior
Provided Props typings are marked as required next methods:
But all of the are also stated in defaultProps definition:
Which means, that all these methods must be marked as optional since their implementations exist.
Current definitions hinder code users from Properly typing custom TabBar components based on original package definitions.
Expected behavior
Next Props typings are marked as optional:
Reproduction
https://snack.expo.dev/Nw9j0ErEY
Platform
Environment
The text was updated successfully, but these errors were encountered: