Skip to content
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

onClose() is not passing event data to callback function #196

Open
r-rouse opened this issue May 3, 2024 · 1 comment
Open

onClose() is not passing event data to callback function #196

r-rouse opened this issue May 3, 2024 · 1 comment

Comments

@r-rouse
Copy link

r-rouse commented May 3, 2024

I am trying to pass event data to my call back function when closing tooltip.

such as onClose={(e) => callBack(e)}. I would like to be able to access pageX to know which tooltip to make visible next.
The onClose() is being called but event is undefined.

This worked previously on version 1.2.0
I have since upgraded react-native:
"react-native-gesture-handler": "2.16.0",
"react-native": "^0.73.0",

@r-rouse
Copy link
Author

r-rouse commented May 3, 2024

I was able to solve this problem by adding this in to tooltip.js:

Screenshot 2024-05-03 at 1 10 35 PM

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

No branches or pull requests

1 participant