ReactNative ActivityIndicator not showing when animating property initiate false

后端 未结 10 1623

I\'m playing with react native and got a strange behaviour.

When I try to show a ActitvityIndicator for Android setting its animating property

10条回答
  •  猫巷女王i
    2021-02-12 22:04

    A quick fix Use conditional rendering.. Keep animating : {true} and just Visible and invisible view.

    Checkout :

    https://kylewbanks.com/blog/how-to-conditionally-render-a-component-in-react-native

提交回复
热议问题