Composable Text with Reanimated ๐
Tuesday, February 18, 2025
demos
composable-text
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A React Native component that provides smooth, per-character animations for text transitions. Built with Reanimated's Layout Animations, it assigns a unique key to each character, enabling fluid individual character animations during text changes.
Features
Smooth per-character animations using Reanimated's Layout Animations
Automatic character transitions with unique key bindings
Customizable text and container styles
Optimized performance for text changes
Usage
import { ComposableText } from 'composable-text';
import { StyleSheet, TouchableOpacity } from 'react-native';
const MyComponent = () => {
const [text, setText] = useState('Use Max');
return (
<TouchableOpacity
onPress={() =>
setText((prevText) =>
prevText === 'Use Max' ? 'Using Max' : 'Use Max'
)
}
>
<ComposableText
text={text}
style={styles.text}
containerStyle={styles.container}
/>
</TouchableOpacity>
);
};
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Composable Text
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback