1.0.0 • Published 5 years ago

react-native-typing-effect v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

react-native-typing-effect

animation library for chat typing effect

Look example example.gif

How to install

npm install git+https://github.com/userbq201/react-native-typing-effect.git

or

yarn add https://github.com/userbq201/react-native-typing-effect --save

How to use

const isShow = true

const Screen = () => (
  <View style={{ flex: 1 }}>
    <TypingIndicator
      isShow={isShow}
      containerStyle={{ /* custom container style */ }}
      textStyle={{ /* custom text style */ }}
    />
  </View>
)

Props types

containerStyle - custom style for container

Style - custom style for text

pointCount - point count (3 default)

duration - animation duration (150ms default)

isShow - controll visible (true default)

scaleTo - point scale max (4 default)

opacityTo - point opacity max (0.8 default)