Skip to content

Commit

Permalink
fix: correctly type title style (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsporck authored Sep 8, 2023
1 parent c104184 commit a6c5bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const HiddenItemWrappedTwice = ()=> <HiddenItemWrapped />
| ---------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------- |
| title: string | title for the button, required | |
| style?: ViewStyle | style to apply to the touchable element that wraps the text | |
| titleStyle?: ViewStyle | style to apply to the text | |
| titleStyle?: TextStyle | style to apply to the text | |
| onPress: ?() => any | function to call on press | |
| testID?: string | testID to locate view in e2e tests | |
| disabled?: boolean | disabled 'item' is greyed out and `onPress` is not called on touch | |
Expand Down
3 changes: 2 additions & 1 deletion src/overflowMenu/vendor/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
GestureResponderEvent,
StyleSheet,
Text,
TextStyle,
View,
ViewStyle,
} from 'react-native';
Expand Down Expand Up @@ -31,7 +32,7 @@ export type Props = {
* @optional
*/
style?: ViewStyle;
titleStyle?: ViewStyle;
titleStyle?: TextStyle;
/**
* TestID used for testing purposes
*/
Expand Down

0 comments on commit a6c5bf4

Please sign in to comment.