Skip to content

Commit

Permalink
Fixed checkbox font being wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrelsjack committed Jan 12, 2024
1 parent 8b4ced1 commit b3a7873
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Components/SearchInterface/SearchInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const SearchInterface = (props: SearchInterfaceProps) => {
)
}

// Do not remove fontWeight, or font will not be Montserrat: https://github.com/react-native-elements/react-native-elements/issues/2191#issuecomment-557812813
return (
<View style={{ padding: 15 }}>
<SearchBar
Expand All @@ -96,6 +97,7 @@ const SearchInterface = (props: SearchInterfaceProps) => {
size={14}
onPress={() => setNameChecked(!nameChecked)}
checkedColor={theme.primaryThemeColor}
textStyle={{ fontWeight: 'normal' }}
containerStyle={{ flexShrink: 1, marginLeft: 0, marginRight: 0 }} />
<CheckBox
fontFamily={GlobalFontName}
Expand All @@ -104,6 +106,7 @@ const SearchInterface = (props: SearchInterfaceProps) => {
size={14}
onPress={() => setIngredientsChecked(!ingredientsChecked)}
checkedColor={theme.primaryThemeColor}
textStyle={{ fontWeight: 'normal' }}
containerStyle={{ flexShrink: 1, marginRight: 0 }} />
<CheckBox
fontFamily={GlobalFontName}
Expand All @@ -112,6 +115,7 @@ const SearchInterface = (props: SearchInterfaceProps) => {
size={14}
onPress={() => setAttributesChecked(!attributesChecked)}
checkedColor={theme.primaryThemeColor}
textStyle={{ fontWeight: 'normal' }}
containerStyle={{ flexShrink: 1, marginRight: 0 }} />
</View>
<View style={styles.buttonsContainer}>
Expand Down

0 comments on commit b3a7873

Please sign in to comment.