Comments (4)
Missing Reproducible Example | |
---|---|
ℹ️ | We could not detect a reproducible example in your issue report. Please provide either:
|
from react-native.
Descrição
Tento criar minha folha de baixo. onPress funciona apenas uma vez, quando o componente pressionável está na raiz. Às vezes é apenas o primeiro clique, às vezes depois de muitos cliques e depois não funciona mais. onPressIn funciona perfeitamente
O bug está na v0.73.7 (novo arco, bridgless falso) e v0.74.0 (novo arco, bridgless verdadeiro), testado apenas no Android.
Passos para reproduzir
(TESTE NO ANDROID, v0.73.7 e v0.74.0, novo arco)
- Criar componente (BottomOption), que mostra apenas com estado verdadeiro, com pressionável para teste
- No componente App, adicione BottomOption dentro de GestureHandlerRootView.
- Clique em pressionável dentro da tela, que altera o estado visível de BottomOption.
- Tente clicar pressionável em BottomOption.
Versão nativa do React
0,74,0
Plataformas afetadas
Tempo de execução - Android
Saída de
npx react-native info
System: OS: Windows 10 10.0.19045 CPU: "(2) x64 AMD Athlon Silver 3050U with Radeon Graphics " Memory: 426.10 MB / 3.42 GB Binaries: Node: version: 18.19.1 path: C:\Program Files\nodejs\node.EXE Yarn: version: 1.22.22 path: ~\AppData\Roaming\npm\yarn.CMD npm: version: 10.2.4 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Not Found Visual Studio: Not Found Languages: Java: 17.0.10 Ruby: Not Found npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.0 wanted: 0.74.0 react-native-windows: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: true iOS: hermesEnabled: Not found newArchEnabled: Not found
Stacktrace ou registros
No crash or failure in logs I try debug onPress call with console.log("TEST"); as onPress doesn't call, console.log too.
Reprodutor
github.com/pigeonmal/react-native-onpress-bug
Capturas de tela e vídeos
Este é o vídeo do meu aplicativo. Normalmente é como o reprodutor.
Registro_2024-04-24-22-06-44.mp4
Hey, @pigeonmal! Create a valid reproduction! I tried to adjust some things, but it still couldn't run.
When the example is ok, it will be a pleasure to try to help.
from react-native.
Sorry for the slow response, I finally managed to get the bug in the reproducer.
CHECK: https://github.com/pigeonmal/react-native-onpress-bug/
I have put the same code as my app.
When newArchEnabled=false: NO BUG, pressable work
When newArchEnabled=true: BUG, pressable don't work
I don't know for the moment if this a bug in react-native, or in my packages, I must do more tests.
from react-native.
I think it is about "react-native-animated" not the react-native.
from react-native.
Related Issues (20)
- Emiting Events from Android in New Arch + Bridgeless + interop layer HOT 5
- react native reanimated erro in 0.74 HOT 4
- [0.74] AppRegistry.registerComponent cannot show in a new ReactRooView HOT 2
- use turboModule in app not as a libray in node_modules folder work fail, js file can not find the turboModule HOT 2
- libgojni.so MTE crash (memory unsafe code) HOT 5
- couldn't find DSO to load: libhermes.so SoSource 0: com.facebook.soloader.ApkSoSource HOT 3
- App State 0.74 in DEVELOPMENT HOT 5
- I compare 0.72.5 and 0.74.0 react native android app size,0.74.0 is 50MB,And 0.72.5 is 21.7 MB.How to reduce 0.74.0 android app size? HOT 14
- WebSocket on android works slower than on ios HOT 1
- @react-native/typescript-config causes type check error for dependencies HOT 1
- CellRendererComponent with onViewableItemsChanged HOT 3
- Can't display Image with source as required() HOT 10
- iOS 17使用调试本地资源,调用网络请求就会闪退,非调试功能下正常 HOT 2
- 'React/JSCExecutorFactory.h' file not found HOT 2
- 'yoga/Yoga.h' file not found HOT 2
- npm can't find tesseract-ocr HOT 3
- Build failed with an exception HOT 2
- Project initialization hangs HOT 1
- React Native requires XCode >= 14.3. Found 14.2 HOT 8
- [0.74] npx react-native init should warn users but it's currently not HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.