Replies: 1 comment
-
I've workaround that problem by sanitizing the props on the js side to avoid null values, even deep in the array/structures passed in props. Here is how it looks like: https://github.com/zabojad/react-native-hole-view/blob/%40thomasfetiveau/new-architecture/src/index.tsx#L48
I've workaround this problem by creating a custom call back in my view class to be used only when fabric is enabled. When using the old arch, the RCTBublingEventBlock will be used. When using the new arch, the custom callback will be used. The custom callback is then plugged to the code that send the event to JS... Here is the code about that: https://github.com/zabojad/react-native-hole-view/blob/%40thomasfetiveau/new-architecture/ios/RNHoleView/RNHoleViewImpl.m#L277 I'll close this topic for now but if anyone has any remark on how to do it better, I'd be very interested in hearing it... |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm currently doing my best to make some third party libs supporting the new arch.
I'm currently porting this one : react-native-hole-view
Link to my work so far: @zabojad/react-native-hole-view
I have a few issues on the iOS side:
There are many optional values.
Here is how I get those values on the iOS native side:
Question 1: Can I detect an undefined value? For example, if the
borderTopLeftRadius
of one item of theholes
prop is not set, how can I detect it? So far, because we have pointers here, I get a random int value instead...Question 2: How can I get the
onAnimationFinished
function prop and pass it to my view ? With the old arch, it was aRCTDirectEventBlock
directly exported/forwarded to my comp object.Thanks if someone can help !
Beta Was this translation helpful? Give feedback.
All reactions