Coder Social home page Coder Social logo

Comments (4)

github-actions avatar github-actions commented on May 7, 2024
⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

from react-native.

mensonones avatar mensonones commented on May 7, 2024

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)

  1. Criar componente (BottomOption), que mostra apenas com estado verdadeiro, com pressionável para teste
  2. No componente App, adicione BottomOption dentro de GestureHandlerRootView.
  3. Clique em pressionável dentro da tela, que altera o estado visível de BottomOption.
  4. Tente clicar pressionável em BottomOption.

Versão nativa do React

0,74,0

Plataformas afetadas

Tempo de execução - Android

Saída denpx 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.

image

876e5210-a590-45ba-b61f-9e245989ee2a

When the example is ok, it will be a pleasure to try to help.

from react-native.

pigeonmal avatar pigeonmal commented on May 7, 2024

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.

necmettindev avatar necmettindev commented on May 7, 2024

I think it is about "react-native-animated" not the react-native.

from react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.