Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Children extends Component {
- render() {
- return (
- <AnimatedCircularProgress
- ref={(ref) => { /* TODO: assign ref here maybe? */}}
- size={120}
- width={15} />
- )
- }
- }
- class Parent extends Component {
- componentDidMount() {
- // TODO: animate the component here
- // I should trigger the animation like this: this.circularProgress.animate(100, 8000, Easing.quad);
- }
- render() {
- return (
- <View>
- <Children />
- <Text>HEYA!</Text>
- </View>
- )
- }
- }
Add Comment
Please, Sign In to add comment