Skip to content

Commit

Permalink
lightbox header/footer: Use size prop.
Browse files Browse the repository at this point in the history
Greg points out [1] that it doesn't really make sense to set the
size with `fontSize`.

[1] zulip#4442 (comment)
  • Loading branch information
chrisbobbe authored and Gautam-Arora24 committed Feb 2, 2021
1 parent e02371c commit c50de27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/lightbox/LightboxFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const styles = createStyleSheet({
alignSelf: 'center',
},
icon: {
fontSize: 28,
alignSelf: 'center',
},
});
Expand All @@ -39,7 +38,7 @@ export default class LightboxFooter extends PureComponent<Props> {
<SafeAreaView mode="padding" edges={['right', 'bottom', 'left']}>
<View style={[styles.wrapper, style]}>
<Text style={styles.text}>{displayMessage}</Text>
<Icon style={styles.icon} color="white" name="more-vertical" onPress={onOptionsPress} />
<Icon size={28} color="white" name="more-vertical" onPress={onOptionsPress} />
</View>
</SafeAreaView>
);
Expand Down
5 changes: 1 addition & 4 deletions src/lightbox/LightboxHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ const styles = createStyleSheet({
rightIconTouchTarget: {
alignSelf: 'center',
},
rightIcon: {
fontSize: 28,
},
wrapper: {
flex: 1,
flexDirection: 'row',
Expand Down Expand Up @@ -74,7 +71,7 @@ export default class LightboxHeader extends PureComponent<Props> {
</Text>
</View>
<Touchable style={styles.rightIconTouchTarget} onPress={onPressBack}>
<Icon style={styles.rightIcon} color="white" name="x" />
<Icon size={28} color="white" name="x" />
</Touchable>
</View>
</SafeAreaView>
Expand Down

0 comments on commit c50de27

Please sign in to comment.