If we pass values directly, then we will have incorrect positioning, because we are passing px while RN relies on dp. So in this PR we are converting all selection coordinates in dp and only then pass them.
📢 Changelog
Android
convert all selection coordinates to dp;
🤔 How Has This Been Tested?
Tested manually on Pixel 3a (API 33, emulator).
📸 Screenshots (if appropriate):
Before
After
Pay an attention to x coordinates 👀
📝 Checklist
[x] CI successfully passed
[x] I added new mocks and corresponding unit-tests if library API was changed
📜 Description
Use
dp
for selection events.💡 Motivation and Context
If we pass values directly, then we will have incorrect positioning, because we are passing
px
while RN relies ondp
. So in this PR we are converting all selection coordinates indp
and only then pass them.📢 Changelog
Android
dp
;🤔 How Has This Been Tested?
Tested manually on Pixel 3a (API 33, emulator).
📸 Screenshots (if appropriate):
📝 Checklist