You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to display a scheme, which consists of many pictures, and the pictures should be replaced depending on the data that comes from the server. The data is set to the state of the redux, after which it is checked according to the conditions and the picture is selected. Also, this scheme should be zoomed and panned.
If you zoom in on the scheme, remove your fingers from the screen, and then new data will come that will change the pictures on the scheme, then the zoom value will return to its initial state, and if you then lower your fingers, then the zoom will return to the state before redrawing.
There is a view that can be zoomed in and panned, inside it one of two pictures is drawn depending on the state, in the example I use the useState hook instead of the editor. Status every 5 seconds.
I want that after redrawing the values do not return to their initial values, how can this be done?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My project uses redux and reanimated.
I need to display a scheme, which consists of many pictures, and the pictures should be replaced depending on the data that comes from the server. The data is set to the state of the redux, after which it is checked according to the conditions and the picture is selected. Also, this scheme should be zoomed and panned.
If you zoom in on the scheme, remove your fingers from the screen, and then new data will come that will change the pictures on the scheme, then the zoom value will return to its initial state, and if you then lower your fingers, then the zoom will return to the state before redrawing.
I have a crude example: https://snack.expo.dev/@enemy/disrespectful-nachos
There is a view that can be zoomed in and panned, inside it one of two pictures is drawn depending on the state, in the example I use the useState hook instead of the editor. Status every 5 seconds.
I want that after redrawing the values do not return to their initial values, how can this be done?
Beta Was this translation helpful? Give feedback.
All reactions