flyskywhy / react-native-custom-picker

React native customizable picker component.
https://www.npmjs.com/package/react-native-custom-picker
0 stars 0 forks source link

Showing previous value #1

Closed maartenvandillen closed 10 months ago

maartenvandillen commented 1 year ago

Hi thanks for your work. When migrating to the latest RN version I had to upgrade this component as well. It is still functioning as it should but it is showing the previously selected value. Do you have the same problem? Maybe this is caused by the deprecated componentWillReceiveProps function?

flyskywhy commented 10 months ago

Sorry for the late of reply because github not notiied me with this issue.

I think maybe you miss used the @flyskywhy/react-native-custom-picker? Because the example "GIF of Font Picker to fillText" in https://github.com/flyskywhy/GCanvasRNExamples which use somehow newer RN version works well, and it's code use react-native-font-picker which is a wrap of @flyskywhy/react-native-custom-picker. And there is no componentWillReceiveProps in @flyskywhy/react-native-custom-picker.

You can also use react-native-easy-custom-picker which is a wrap of @flyskywhy/react-native-custom-picker.

maartenvandillen commented 10 months ago

Sorry I can't remember exactly what this was about, but I see that I resorted to fork https://github.com/androidsolutions2/react-native-custom-picker which is working ok.