Quantcast
Channel: How to rerender FlatList inside of SmoothPicker to change data with react hooks - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Aris Tsermas for How to rerender FlatList inside of SmoothPicker to...

You should separate the feet & meters (the function tha generates them). Set data with useState & make meters as default make use of useEffect to change the data everytime you toggle. ......

View Article


Image may be NSFW.
Clik here to view.

How to rerender FlatList inside of SmoothPicker to change data with react hooks

I'm trying to create an SmoothPicker like that: I'm using react-native-smooth-picker and all works fine, except when I'm Changing to Feet. When I change to Feet, I want that the list will rerender and...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>