Skip to content

Commit a6c5bf4

Browse files
authored
fix: correctly type title style (#210)
1 parent c104184 commit a6c5bf4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const HiddenItemWrappedTwice = ()=> <HiddenItemWrapped />
224224
| ---------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------- |
225225
| title: string | title for the button, required | |
226226
| style?: ViewStyle | style to apply to the touchable element that wraps the text | |
227-
| titleStyle?: ViewStyle | style to apply to the text | |
227+
| titleStyle?: TextStyle | style to apply to the text | |
228228
| onPress: ?() => any | function to call on press | |
229229
| testID?: string | testID to locate view in e2e tests | |
230230
| disabled?: boolean | disabled 'item' is greyed out and `onPress` is not called on touch | |

src/overflowMenu/vendor/MenuItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
GestureResponderEvent,
44
StyleSheet,
55
Text,
6+
TextStyle,
67
View,
78
ViewStyle,
89
} from 'react-native';
@@ -31,7 +32,7 @@ export type Props = {
3132
* @optional
3233
*/
3334
style?: ViewStyle;
34-
titleStyle?: ViewStyle;
35+
titleStyle?: TextStyle;
3536
/**
3637
* TestID used for testing purposes
3738
*/

0 commit comments

Comments
 (0)