diff --git a/README.md b/README.md index 8979cf8..66c55e3 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ const HiddenItemWrappedTwice = ()=> | ---------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------- | | 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 | | diff --git a/src/overflowMenu/vendor/MenuItem.tsx b/src/overflowMenu/vendor/MenuItem.tsx index 175480d..dd57a43 100644 --- a/src/overflowMenu/vendor/MenuItem.tsx +++ b/src/overflowMenu/vendor/MenuItem.tsx @@ -3,6 +3,7 @@ import { GestureResponderEvent, StyleSheet, Text, + TextStyle, View, ViewStyle, } from 'react-native'; @@ -31,7 +32,7 @@ export type Props = { * @optional */ style?: ViewStyle; - titleStyle?: ViewStyle; + titleStyle?: TextStyle; /** * TestID used for testing purposes */