Fix YouTube play button position (#2160)

This commit is contained in:
Elias Nahum 2018-09-26 12:14:51 -03:00 committed by Harrison Healey
parent f522df7a2e
commit 4cebbfdc94

View file

@ -210,7 +210,10 @@ export default class PostBodyAdditionalContent extends PureComponent {
resizeMode='cover'
onError={this.handleLinkLoadError}
>
<TouchableOpacity onPress={this.playYouTubeVideo}>
<TouchableOpacity
style={styles.playButton}
onPress={this.playYouTubeVideo}
>
<Image
source={require('assets/images/icons/youtube-play-icon.png')}
onPress={this.playYouTubeVideo}
@ -468,4 +471,9 @@ const styles = StyleSheet.create({
justifyContent: 'center',
marginVertical: 1,
},
playButton: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});