Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hey @yotavm, I ran into a similar issue today. Try wrapping your Animation in a View with the same width and height.
- e.g.
- <View style={{ flex: 1, justifyContent: 'center', alignContent: 'center' }}>
- <View
- style={{
- width: width - 100,
- height: width - 100,
- }}
- >
- <Animation
- style={{
- width: width - 100,
- height: width - 100,
- }}
- source={animationSrc}
- progress={this.state.progress}
- />
- </View>
- </View>
- That workaround should hopefully let you align the animation as you want.
Add Comment
Please, Sign In to add comment