円を表示し、拡大する
App.js
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, Button } from 'react-native';
import Animated, { useSharedValue, useAnimatedProps, useAnimatedStyle, withTiming} from 'react-native-reanimated';
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
export default function App() {
const r = useSharedValue(20);
const handlePress = () => {
}
return (
<View style={styles.container}>
<AnimatedCircle cx="200" cy="200" fill="blue" animatedProps={animatedProps}/>
<View style={{marginBottom:100}}>
<Button onPress={handlePress} title="PUSH"/>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
*1:) => ({
}