IjzerenHein / react-navigation-shared-element

React Navigation bindings for react-native-shared-element 💫
https://github.com/IjzerenHein/react-native-shared-element
MIT License
1.27k stars 124 forks source link

Add prop types to SharedElementSceneComponent #111

Closed Rafatcb closed 3 years ago

Rafatcb commented 3 years ago

Using any remove the type checking, so now it is possible to specify a generic type to have props type checking in the same way React.ComponentType does, while it still accepts an any type as generic.

Old behavior

old-behavior

Current behavior

Default behavior

current-default-behavior

Using any as before

current-any-behavior

Setting prop types

current-prop-types