react-native-reanimated-indicators

non ui blocking indicators for react-native using reanimated

Usage no npm install needed!

<script type="module">
  import reactNativeReanimatedIndicators from 'https://cdn.skypack.dev/react-native-reanimated-indicators';
</script>

README

CircleCI semantic-release

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

1. <BallIndicator />

Looks almost same with original.

<BallIndicator color="orange" />

2. <DotIndicator />

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?"