Skip to content

TwistedMinda/react-native-animated-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animated number using Skia & Reanimated 3

Feel free to experiment the Example

And checkout the possible options

interface AnimatedNumberOptions {
  animated: boolean
  animationDuration: number
  columnSpacing: number
  decimalSeparator: string
  decreaseColor: string
  font?: AnimatedNumberFont
  fontSize?: number
  increaseColor: string
  integerSeparator?: string
  leftComponentBackgroundColor: string
  leftComponentSize: number
  maxNbIntegers: number
  minNbIntegers: number
  minusSign: string
  nbDecimals: number
  renderLeft?: (num: SharedValue<MyNumber>, font?: AnimatedNumberFont) => JSX.Element | null
  renderRight?: (num: SharedValue<MyNumber>, font?: AnimatedNumberFont) => JSX.Element | null
  rightComponentSize: number
  textColor: string
}

The Colorized Delta when value changes can be enabled/disabled on the fly by a SharedValue

With a graph

It also feels very nice when used along with a graph.

Feel free to create a library for the AnimatedNumber component!

About

(React-native) Skia & Reanimated Animated Number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published