MCPcopy Create free account
hub / github.com/dabbott/react-native-express / MyComponent

Function MyComponent

examples/files/animation/animatedView.tsx:4–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { Animated, Button } from 'react-native'
3
4export default function MyComponent() {
5 const value = useRef(new Animated.Value(0))
6
7 return (
8 <>
9 <Button title="Animate" />
10 <Animated.Text style={{ opacity: value.current, fontSize: 42 }}>
11 Hello!
12 </Animated.Text>
13 </>
14 )
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected