Skip to content

Commit 4df7274

Browse files
committed
feat: contentStyle prop is added
1 parent f27395c commit 4df7274

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import Tooltip from "react-native-tooltip-2";
3838
isVisible={toolTipVisible}
3939
content={<Text>Check this out!</Text>}
4040
placement={Placement.TOP}
41-
backgroundStyle={{backgroundColor: 'transparent'}}
4241
onClose={() => setToolTipVisible(false)}>
4342
<Pressable
4443
style={styles.button}

lib/Tooltip.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export type TooltipProps = typeof Tooltip.defaultProps & {
7777
placement?: Placement;
7878
displayInsets?: PlacementType;
7979
style?: StyleProp<ViewStyle>;
80+
contentStyle?: StyleProp<ViewStyle>;
8081
backgroundStyle?: StyleProp<ViewStyle>;
8182
parentWrapperStyle?: StyleProp<ViewStyle>;
8283
childrenWrapperStyle?: StyleProp<ViewStyle>;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-tooltip-2",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Customizable, easy to use tooltip for React Native",
55
"main": "./build/dist/index.js",
66
"repository": "git@github.com:WrathChaos/react-native-tooltip-2.git",

0 commit comments

Comments
 (0)