ReactNative ActivityIndicator not showing when animating property initiate false

后端 未结 10 1700
悲哀的现实
悲哀的现实 2021-02-12 21:31

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条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 22:02

    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

提交回复
热议问题