Guest User

Untitled

a guest
Nov 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Hey @yotavm, I ran into a similar issue today. Try wrapping your Animation in a View with the same width and height.
  2.  
  3. e.g.
  4.  
  5. <View style={{ flex: 1, justifyContent: 'center', alignContent: 'center' }}>
  6. <View
  7. style={{
  8. width: width - 100,
  9. height: width - 100,
  10. }}
  11. >
  12. <Animation
  13. style={{
  14. width: width - 100,
  15. height: width - 100,
  16. }}
  17. source={animationSrc}
  18. progress={this.state.progress}
  19. />
  20. </View>
  21. </View>
  22. That workaround should hopefully let you align the animation as you want.
Add Comment
Please, Sign In to add comment