Created
February 23, 2023 09:29
-
-
Save matinzd/d51fd0f7b008192f9930f789ac105e3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Animated, {useAnimatedProps} from 'react-native-reanimated' | |
const AnimatedText = Animated.createAnimatedComponent(Text) | |
const Example = ({progress = 0}) => { | |
const animatedTextProps = useAnimatedProps(() => { | |
return { | |
x: 0, | |
y: 0, | |
} | |
}) | |
return ( | |
<AnimatedSvgText fill="black" animatedProps={animatedTextProps}> | |
{progress} | |
</AnimatedSvgText> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment