Skip to content

Commit

Permalink
feat: contentStyle prop is added
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Mar 8, 2023
1 parent f27395c commit 4df7274
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import Tooltip from "react-native-tooltip-2";
isVisible={toolTipVisible}
content={<Text>Check this out!</Text>}
placement={Placement.TOP}
backgroundStyle={{backgroundColor: 'transparent'}}
onClose={() => setToolTipVisible(false)}>
<Pressable
style={styles.button}
Expand Down
1 change: 1 addition & 0 deletions lib/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export type TooltipProps = typeof Tooltip.defaultProps & {
placement?: Placement;
displayInsets?: PlacementType;
style?: StyleProp<ViewStyle>;
contentStyle?: StyleProp<ViewStyle>;
backgroundStyle?: StyleProp<ViewStyle>;
parentWrapperStyle?: StyleProp<ViewStyle>;
childrenWrapperStyle?: StyleProp<ViewStyle>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-tooltip-2",
"version": "0.1.0",
"version": "0.1.1",
"description": "Customizable, easy to use tooltip for React Native",
"main": "./build/dist/index.js",
"repository": "[email protected]:WrathChaos/react-native-tooltip-2.git",
Expand Down

0 comments on commit 4df7274

Please sign in to comment.