Skip to content

Added documentation to the readme #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

santiagob20
Copy link

This prop is defined in the code but not explained in the README.md, that's why I decided to add it because sometimes the dev needs to modify de CSS, for example to change de borderRadius of the tooltip.

@WrathChaos WrathChaos self-requested a review January 19, 2024 09:54
@WrathChaos WrathChaos self-assigned this Jan 19, 2024
Copy link
Owner

@WrathChaos WrathChaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for contribution, left a little comment if you change it I will merge it :)

@@ -77,6 +77,7 @@ The tooltip wraps an element _in place_ in your React Native rendering. When it
| closeOnChildInteraction | bool | true | When child interaction is allowed, this prop determines if `onClose` should be called when the user interacts with the child element. Default is true (usually means the tooltip will dismiss once the user touches the element highlighted) |
| closeOnContentInteraction | bool | true | this prop determines if `onClose` should be called when the user interacts with the content element. Default is true (usually means the tooltip will dismiss once the user touches the content element) |
| content | function/Element | `<View />` | This is the view displayed in the tooltip popover bubble |
| contentStyle | CSS | | Custom CSS to modify the tooltip as needed. |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type should be StyleProp<ViewStyle> and the explanation should match with it.

Because in react native, we're not using CSS, it is its own style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants