Closed ankushdutt closed 3 years ago
Deploy preview for rne-playground ready!
Built with commit 419bc1a2899cecf3ab8a0112d6bcedf988cac798
Gotcha @tewarig, thanks! Added that back
This works, great. But can we do this with a simple state hook -> https://react-view.netlify.app/?path=/story/useview--state-hook
But can we do this with a simple state hook -> https://react-view.netlify.app/?path=/story/useview--state-hook
No, we can't. This only works for the top level prop (like onBackdropPress
). Here, TochableOpacity
is present inside of chidren. So, we must correctly target its onPress
handler using the react-view AST.
Thanks
fixes: #61
Edit: Finally found a way to hook props to the children using react-view AST. Now it works for both on clicking backdrop and TouchableOpacity