DrChai / react-native-rheostat

inspired by Airbnb's rheostat, a powerful slider with assorted data visualized charts
MIT License
117 stars 18 forks source link

Update withRheostat.tsx #26

Closed AE0011 closed 2 years ago

AE0011 commented 3 years ago

Add rest chartprops Incase if we want to pass some extra props to chart e.g. yAccessor={({item}) => item.value} for a custom data

DrChai commented 3 years ago

since it's written in Typescript now, that would also need to add more types of its props. After all, it is just another HOC, perhaps a proper way is to write a custom component and then wrap it with withRheostat instead.