README
Non JS thread blocking indicator components for React Native.
There is the awesome indicators library (react-native-indicators) from long time ago.
But, as Animated
from react-native
contact with JS thread when animation is finished, it makes InteractionManager.runAfterInteraction
never run...
Usage
yarn add react-native-reanimated-indicators
Components
<BallIndicator />
1. Looks almost same with original.
<BallIndicator color="orange" />
<DotIndicator />
2. Looks like the indicator at "Messages" at "mac os" or "iOS", but I couldn't create the same.
<DotIndicator color="tomato" scaleEnabled={true} />
Status
If anyone interested in adding new indicators, I appreciate the PR 🙌
Why I created this library
I was using the awesome library (react-native-indicators), until use it with InteractionManager.runAfterInteraction()
.
As Animated
from react-native
contact with JS thread when animation is finished, InteractionManager.runAfterInteraction
never run...
I didn't understand for a while, and I switch to ActivityIndicator
at that moment.
After that,
I got to know Can it be done in React Native? and I was start thinking "by using the library react-native-reanimated
, CAN IT BE DONE?"