fix(android): use composition for JSPointerDispatcherCompat (#1477)
## 📜 Description JSPointerDispatcher became a final Kotlin class in React Native 0.87+ (after the Java-to-Kotlin migration in https://github.com/facebook/react-native/pull/56910), so JSPointerDispatcherCompat can no longer extend it. While I'm restoring it in: - https://github.com/facebook/react-native/pull/57022 Ideally we would want to reduce the API surface of RN apis. So here I'm switching from inheritance to composition by holding an internal JSPointerDispatcher delegate and forwarding calls to it. ## 🤔 How Has This Been Tested? Looking for guidance on how to test this. <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> <!-- see how your change affects other areas of the code, etc. --> ## 📸 Screenshots (if appropriate): N/A <!-- Add screenshots/video if needed --> <!-- That would be highly appreciated if you can add how it looked before and after your changes --> ## 📝 Checklist - [ ] CI successfully passed - [ ] I added new mocks and corresponding unit-tests if library API was changed
N
Nicola Corti committed
46f27fccc7f9a69bb9d3ece4d3ee324307a6e8fb
Parent: adafcc8
Committed by GitHub <noreply@github.com>
on 6/1/2026, 2:02:30 PM