$ git show progress-bar

Progress bar

Basic/anim progress-bar

Animate a bar's width to a percentage value.

Main · New Architecture only · worklets live in react-native-worklets
transitionPropertywidth %CSS transitions
progress-bar.tsx · reanimated 4
// The fill animates every time percent changes
<View style={styles.track}>
  <Animated.View
    style={[styles.fill, {
      width: percent + '%',
      transitionProperty: 'width',
      transitionDuration: '600ms',
      transitionTimingFunction: 'ease-out',
    }]}
  />
</View>