Closed siddarthkay closed 8 months ago
Hi @siddarthkay and thanks for your attention to our library!
Frankly I don't think we really need this code to be merged - I don't see any reason why react-native-hole-view should handle any user interactions (gestures, clicks, etc)
My opinion - it's better to use patch-package
to eliminate the problem until RN-team fix it
But if this setter (setOnClick) is a necessary part of any View-based module - we could merge it, but I can't find any mention about it in RN Modules documentation
Hello! @stephenkopylov
Your reasoning sounds good,
This could be a bug in RN
or an undocumented change, I intend to create few examples of code that worked in react-native 0.72
which now crashes in react-native 0.73
with this error in javascript/typescript
.
We have many examples in our project but they're in clojurescript
and I am sure they would not be easy to understand for someone that does not write clojure
.
more information on the crash is here : https://github.com/status-im/status-mobile/pull/18563#issuecomment-1911511881
This kind of crash happened because of usage of react-native-hole-view
inside a TouchableWithoutFeedback
component and the onPress
of TouchableWithoutFeedback
was causing the crash.
We fixed it by swapping TouchableWithoutFeedback
with Pressable
component from react native.
This PR is un-necessary & hence closing. Thanks again @stephenkopylov for the good work on this library!
When upgrading
react-native
to0.73.2
for our project we faced this crash which did not happen inreact-native
version0.72.5
ref -> https://github.com/status-im/status-mobile/pull/18563#issuecomment-1907414008This PR fixes that crash by modifying
RNHoleViewImpl
interface to acceptsetOnClick
This is a very basic implementation just so that we avoid the crash without having to change the way we usereact-native-hole-view
in our codebase.If you would like this to be done some other way I would be happy to incorporate any feedback you have.
Looking forward to your thoughts on this @stephenkopylov