I\'m playing with react native and got a strange behaviour.
When I try to show a ActitvityIndicator for Android setting its animating property
The transition of animating
from false
to true
is too slow on Android. But you can force a re-render using the key
prop:
When props.animating
changes from false
to true
, they key also changes. This forces a re-render, meaning that a new component is rendered with animating = true
, which will instantly start your spinner.