Skip to content

Commit

Permalink
Flatten styles to avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
aldo-expensify committed Dec 12, 2022
1 parent 1c2d01b commit 3ef5d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ const OptionRow = (props) => {
: styles.sidebarLinkText;
const textUnreadStyle = (props.boldStyle)
? [textStyle, styles.sidebarLinkTextBold] : [textStyle];
const displayNameStyle = [styles.optionDisplayName, ...textUnreadStyle, props.style];
const alternateTextStyle = [textStyle, styles.optionAlternateText, styles.textLabelSupporting, props.style];
const displayNameStyle = StyleSheet.flatten([styles.optionDisplayName, ...textUnreadStyle, props.style]);
const alternateTextStyle = StyleSheet.flatten([textStyle, styles.optionAlternateText, styles.textLabelSupporting, props.style]);
const contentContainerStyles = [styles.flex1];
const sidebarInnerRowStyle = StyleSheet.flatten([
styles.chatLinkRowPressable,
Expand Down

0 comments on commit 3ef5d88

Please sign in to comment.