[Android] react-android's prefab has no react/renderer/components/scrollview headers, so a library cannot include ScrollView's component descriptor
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- android
- 領域
- build-system, mobile
調査の方向性
packages/react-native/ReactAndroid/build.gradle.ktsを読み、特に219~227行付近のpreparePrefabのコンポーネントフォルダー一覧を確認して、エクスポートされたコンポーネントヘッダーと比較してください。Issueでは、libreactnative.soにScrollViewのシンボルが存在する一方で、rrc_scrollviewが欠落していると報告されています。不足しているscrollviewヘッダーのエクスポートを追加し、prefabにヘッダーが含まれることと、再現用コードのネイティブビルドでScrollViewComponentDescriptor.hが解決されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Description
The reactnative prefab module in the react-android AAR carries the headers of react/renderer/components/view, image, root, text and textinput, but none of react/renderer/components/scrollview. libreactnative.so defines ScrollView's shadow node and state (ScrollViewShadowNode::layout, ScrollViewShadowNode::updateStateIfNeeded, ScrollViewState::getContentSize, ScrollViewComponentName), so a library or app that builds against the prebuilt AAR can link them but cannot include ScrollViewShadowNode.h, ScrollViewComponentDescriptor.h or ScrollViewState.h; for example, to register a component descriptor that extends ScrollView's.
preparePrefab in packages/react-native/ReactAndroid/build.gradle.kts lists a Pair for each exported component folder (// rrc_textinput and its platform/android/ folder among them) and has none for rrc_scrollview: https://github.com/react/react-native/blob/1273ca128fa378e231dd351a65fb7d63fe0b6526/packages/react-native/ReactAndroid/build.gradle.kts#L219-L227
Steps to reproduce
git clone https://github.com/YevheniiKotyrlo/rn-prefab-scrollview-headers-repro && cd rn-prefab-scrollview-headers-repro./reproduce.sh. It installs ReproducerApp (React Native0.90.0-nightly-20261111-1273ca128) and runs./gradlew :app:externalNativeBuildDebug -PreactNativeArchitectures=arm64-v8a. The app'ssrc/main/jni/CMakeLists.txtis the default app setup plus one file,scrollview/ScrollViewDescriptorProvider.cpp:
#include <react/renderer/components/view/ViewComponentDescriptor.h>
#include <react/renderer/components/scrollview/ScrollViewComponentDescriptor.h>
namespace facebook::react {
ComponentDescriptorProvider scrollViewComponentDescriptorProvider() {
return concreteComponentDescriptorProvider<ScrollViewComponentDescriptor>();
}
} // namespace facebook::react
Expected: the scrollview include resolves from the prefab, as the view include on the line before it does.
Seen: the build stops at the scrollview include, and the prefab's react/renderer/components holds no scrollview folder. The release AAR from the same nightly has none either, while its jni/arm64-v8a/libreactnative.so defines the ScrollView symbols above.
React Native Version
0.90.0-nightly-20261111-1273ca128
Affected Platforms
Runtime - Android, Build - Windows
Output of npx @react-native-community/cli info
System:
OS: Windows 11 10.0.26300
CPU: "(32) x64 AMD Ryzen 9 9950X3D 16-Core Processor "
Memory: 181.10 GB / 255.67 GB
Binaries:
Node:
version: 26.12.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: C:\Users\<user>\AppData\Roaming\npm\yarn.CMD
npm:
version: 12.2.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions:
- 10.0.19041.0
- 10.0.26100.0
IDEs:
Android Studio: AI-262.9437.185.2621.16467767
Visual Studio: Not Found
Languages:
Java:
version: 17.0.20.1
path: C:\Program Files\Microsoft\jdk-17.0.20.101-hotspot\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 21.0.0-alpha.1
wanted: 21.0.0-alpha.1
react:
installed: 19.3.0
wanted: 19.3.0
react-native:
installed: 0.90.0-nightly-20261111-1273ca128
wanted: 0.90.0-nightly-20261111-1273ca128
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
MINGW64_NT-10.0-26300 x86_64, node v26.12.1, openjdk version "17.0.20.1" 2026-08-18 LTS
react-native 0.90.0-nightly-20261111-1273ca128
== ./gradlew :app:externalNativeBuildDebug -PreactNativeArchitectures=arm64-v8a
C/C++: ReproducerApp/android/app/src/main/jni/scrollview/ScrollViewDescriptorProvider.cpp:4:10: fatal error: 'react/renderer/components/scrollview/ScrollViewComponentDescriptor.h' file not found
BUILD FAILED in 35s
== react/renderer/components in react-android-0.90.0-nightly-20261111-1273ca128-SNAPSHOT-debug/prefab/modules/reactnative/include
androidtextinput
FBReactNativeSpec
image
root
text
textinput
view
SUMMARY: the react-android prefab has no react/renderer/components/scrollview headers
MANDATORY Reproducer
https://github.com/YevheniiKotyrlo/rn-prefab-scrollview-headers-repro
Screenshots and Videos
No response
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.5k
- 平均マージ
- 3日 18時間
- マージ済み PR(30日)
- 188
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react/react-native のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
react/react-native#59945 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
react/react-native#59944 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
react/react-native#59942 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
react/react-native#59939 ·
メンテナーはふだん 2 日以内に返信
-
iOS Fabric pointer-handler reset leaves the next lone touch non-primary対応中かも @alleneubank が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
react/react-native#59919 ·
メンテナーはふだん 2 日以内に返信
react/react-native の issue をすべて見る
似ている issue
-
type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
tensorflow/tflite-micro#3995 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
not for AI lovers
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
VT: Backend
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
contour-terminal/contour#2314 ·
メンテナーはふだん 1 日以内に返信