Open brunolsantos opened 6 years ago
The way I get around this is by making Transition's duration prop come from state. When I need to update state, I change it to 0 (so the re-render happens instantly with no animation) and call Transition.show and when I want something to animate, put it back to 250 or whatever.
You could do a similar thing in componentDidUpdate with props.
It seems that every state under
<Transition>
tag is not being updated.Parent Component
Child Component
When i click the second
<TouchableOpacity>
in parent component to change child value it just doesn't update.Maybe this problem is related to #4 .