Scale Metodu-React Native Hooks ile Animasyon-3

Sabiha Çetin Durmaz
1 min readMar 5, 2020

--

Scale metodu: Nesneyi büyültüp küçültmeye yarayan metoddur.

Örnek :

const AnimasyonDeneme = () => {
const animation = new Animated.Value(1);
const startAnimation = () => {
Animated.timing(animation,
{
toValue: 2,
duration: 300
}).start();
}; const animatedStyle={
transform:[{
scale:animation,
//scaleX:animation,
// scaleY:animation,
}]
};
return (
<View style={styles.container}>
<TouchableWithoutFeedback
onPress=
{() => startAnimation()}>
<Animated.View
style=
{[styles.myBox, animatedStyle]}>
<Text>Mâlâyaniyle iştigal, maksadı geri bırakır!</Text>
</Animated.View>
</TouchableWithoutFeedback>
</View>
)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response