Guest User

Untitled

a guest
Dec 19th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. class Children extends Component {
  2. render() {
  3. return (
  4. <AnimatedCircularProgress
  5. ref={(ref) => { /* TODO: assign ref here maybe? */}}
  6. size={120}
  7. width={15} />
  8. )
  9. }
  10. }
  11.  
  12. class Parent extends Component {
  13.  
  14. componentDidMount() {
  15. // TODO: animate the component here
  16. // I should trigger the animation like this: this.circularProgress.animate(100, 8000, Easing.quad);
  17. }
  18.  
  19. render() {
  20. return (
  21. <View>
  22. <Children />
  23. <Text>HEYA!</Text>
  24. </View>
  25. )
  26. }
  27. }
Add Comment
Please, Sign In to add comment