View can't receive touch down event: Got DOWN touch before receiving UP or CANCEL from last gesture #550
Closed
2 tasks done
Labels
bug
Something isn't working
Description
Scaffolded react native
Native view
module could not receive Touch down events. I wonder if this is React Native issue, or the scaffolded code's issue.Step to reproduce:
npx create-react-native-library@latest test-library
cd test-library
,yarn
cd example
,yarn
yarn start
to start Metro ServerTestLibraryView
extends Android View class that override onTouchEvent to print out the x,y,action of the touchedBoth the app and the native View can receive the Touch DOWN event, but
Got DOWN touch before receiving UP or CANCEL from last gesture
error always pop up after a touch, withViewPostIme pointer 1
andViewPostIme pointer 0
, I can see that the React RootView does know that touch down/up was fired, but somehow touch UP doesn't get recognized by the native view.The issue make my Custom View Native component is unusable cuz touch DOWN was not received, leads to no interaction in the Component view. Is there any lacking configuration that I needed to add into the View/View Manager configuration?
Packages
Selected options
√ What is the name of the npm package? ... react-native-test-library
√ What is the description for the package? ... test
√ What is the name of package author? ... hohoaisan
√ What is the email address for the package author? ... [email protected]
√ What is the URL for the package author? ... https://github.com/hohoaisan
√ What is the URL for the repository? ... https://github.com/hohoaisan/react-native-test-library
√ What type of library do you want to develop? » Native view
√ Which languages do you want to use? » Java & Objective-C
Link to repro
https://github.com/hohoaisan/test-react-native-library
Environment
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19045
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Memory: 945.04 MB / 15.82 GB
Binaries:
Node:
version: 18.19.0
path: ~\AppData\Local\nvs\default\node.EXE
Yarn:
version: 3.6.1
path: ~\AppData\Local\nvs\default\yarn.CMD
npm:
version: 10.2.3
path: ~\AppData\Local\nvs\default\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions:
- 10.0.20348.0
IDEs:
Android Studio: AI-232.10300.40.2321.11668458
Visual Studio: Not Found
Languages:
Java:
version: 11.0.14.1
path: /c/Program Files/OpenJDK/openjdk-11.0.14.1_1/bin/javac
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.7
wanted: 0.73.7
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
The text was updated successfully, but these errors were encountered: