Open arpitdalal opened 1 week ago
@arpitdalal Is this a breaking change for apps that still didn't enable new architecture or it works for those too?
Hey, just to clarify @arpitdalal-hp and I are the same person with different profiles. Sorry for the confusion but I didn't notice I created the PR with a different profile than the issue.
I pushed a commit to address your comment, initially I removed the usage of NativeModules
, but to support older react-native versions, I've added it back with a check to use it if measureInWindow
doesn't exist on ref
.
hey @arpitdalal I just created a bug here with a patch file, but didn't find your PR. But we are fixing the exact same issue.
Here is my bug report: https://github.com/SteffeyDev/react-native-popover-view/issues/183
NativeModules
is not working in the new architecture, so using themeasureInWindow
method on the ref as suggested by the react-native documentation here and here.