The slider component is not setting the correct value after a rotation when a new value comes from an async fetch. When rotated it shows the initial value, what is wrong.
Related to
[x] Components
[ ] Demo
[ ] Docs
[ ] Typings
Steps to reproduce
Add a slider to a component. Set a default value: ex: 1(minimumValue=1, maximumValue= 10).
Add an async function to update the value to "3" after a while (ex: 2 seconds). You can see that the value has been updated in the slider. Ok.
Now, rotate the device. You can see that the slider has value 1 (initial) instead of 3.
Expected behavior
After rotating should keep the last value, not the initial
Description
The slider component is not setting the correct value after a rotation when a new value comes from an async fetch. When rotated it shows the initial value, what is wrong.
Related to
Steps to reproduce
Expected behavior
After rotating should keep the last value, not the initial
Actual behavior
The slider keeps the inicial value
More Info
Code snippet
snack : https://snack.expo.dev/@damiantp/rnuilib-slider-rotation
Screenshots/Video
Environment
Expo: v49 "react-native-ui-lib": "7.8.0", "react-native-reanimated": "~3.3.0", "react-native-gesture-handler": "~2.12.0",
Tested only on Android.
Affected platforms