react / react/react-native

Touchable native feedback is not working and issue with child elements style update also

オープン
#53,849 コメント 8 件 リアクション 14 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Issue: Author Provided Repro Needs: React Native Team Attention Platform: Android
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

In recent react native the touchable native feedback component ripple effect is not working
Broken on
react-native: "0.80.1" & "0.81.4" (Without expo)
and
expo: "54"

Also child elements doesn't reflect changes in styles due to state change (Issue is in Android only)

Steps to reproduce

https://snack.expo.dev/@deepktp/touchablenativefeedback-android-component-example
and make sure to choose expo 54

  1. Tap on first card (this is example from official documents of react native ) or the second card (new created) the ripple effect will not work then switch back to expo 53 and ripple effect will work

  2. press on second card the text and text color changes with state update but background color of view component doesn't change in expo 54 but in expo 53 it works perfectly.

React Native Version

0.81.4

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info
System:
  OS: macOS 15.5
  CPU: (8) arm64 Apple M1
  Memory: 124.13 MB / 8.00 GB
  Shell:
    version: 3.2.57
    path: /bin/sh
Binaries:
  Node:
    version: 22.15.0
    path: /usr/local/bin/node
  Yarn:
    version: 4.1.1
    path: /usr/local/bin/yarn
  npm:
    version: 10.9.2
    path: /usr/local/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.5
      - iOS 18.5
      - macOS 15.5
      - tvOS 18.5
      - visionOS 2.5
      - watchOS 11.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.3 AI-243.25659.59.2432.13423653
  Xcode:
    version: 16.4/16F6
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 20.0.2
    path: /usr/bin/javac
  Ruby:
    version: 3.4.3
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.4
    wanted: ^0.81.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
.
MANDATORY Reproducer

https://snack.expo.dev/@deepktp/touchablenativefeedback-android-component-example

Screenshots and Videos

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Android で必須の Snack reproducer から始め、報告されている React Native のバージョン 0.80.1 と 0.81.4 を使用して、Expo 53 と Expo 54 での動作を比較します。Android で TouchableNativeFeedback の ripple 効果が機能し、状態変更後に子ビューの背景スタイルが更新されれば、issue は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。