Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(android): add JSPointerDispatcherCompat for RN < 0.72 (#681)
## 📜 Description To add a compatibility layer for `JSPointerDispatcher`, ensure that the method functions correctly regardless of whether it is called with two or three parameters. <!-- Describe your changes in detail --> ## 💡 Motivation and Context Related: facebook/react-native@1e53f88#diff-e874545c1f508ac02d63d67356fe0519f6c0dd5f380afeb900cf1de4fce6835aL202-R203 With the change, the number of parameters has increased from two to three. Since React Native 0.71.14 only uses two parameters, this causes a build error on Android. ## 📢 Changelog <!-- High level overview of important changes --> <!-- For example: fixed status bar manipulation; added new types declarations; --> <!-- If your changes don't affect one of platform/language below - then remove this platform/language --> ### Android - add `JSPointerDispatcherCompat` class ## 🤔 How Has This Been Tested? - I've tried compiling from 0.71 - I've tried compiling from 0.76 - **I would like to test the compatibility layer to ensure it functions smoothly. Could you help me with a plan for testing this code?** <!-- 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): <img width="978" alt="image" src="https://github.com/user-attachments/assets/b3f96c4e-fc5d-40f3-9c6c-7fe9929d658c"> <!-- 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 - [x] I added new mocks and corresponding unit-tests if library API was changed
- Loading branch information