react / react/react-native

Interop Layer Android Display issue

オープン
#39,313 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

Needs: Repro Never gets stale Platform: Android Type: New Architecture
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

When the UnimplementedView is shown, if one of its child is an Animated View, the UnimplementedView will not display the 'XXX is not Fabric compatible yet'

React Native Version

0.72.4

Output of npx react-native info

System:
OS: macOS 13.2
CPU: (10) arm64 Apple M2 Pro
Memory: 57.34 MB / 16.00 GB
Shell:
version: 5.8.1
path: /bin/zsh
Binaries:
Node:
version: 18.15.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.5.0
path: /usr/local/bin/npm
Watchman:
version: 2023.05.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /Users/thibault/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.2
- iOS 16.2
- macOS 13.1
- tvOS 16.1
- watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode:
version: 14.2/14C18
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.18
path: /usr/bin/javac
Ruby:
version: 3.1.2
path: /Users/thibault/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Steps to reproduce

Start the example below on new arch android

Snack, code example, screenshot, or link to a repository

This will demonstrate the issue: the first 3 box properly display the error but not the fourth one

import React from 'react';
import {Animated, SafeAreaView, Text, View} from 'react-native';
import {ShadowedView} from 'react-native-fast-shadow';

function App(): JSX.Element {
  return (
    <SafeAreaView>
      <View style={{gap: 16}}>
        <ShadowedView style={{width: 200, height: 200}} />
        <ShadowedView style={{width: 200, height: 200}}>
          <Text>Hello</Text>
        </ShadowedView>
        <ShadowedView style={{width: 200, height: 200}}>
          <View>
            <Text>Hello</Text>
          </View>
        </ShadowedView>
        <ShadowedView style={{width: 200, height: 200}}>
          <Animated.View>
            <Text>Hello</Text>
          </Animated.View>
        </ShadowedView>
      </View>
    </SafeAreaView>
  );
}

export default App;

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

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

はじめの一歩

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

調査の方向性

Android UnimplementedView パスから始め、新しいアーキテクチャを有効にして、提供された App の例を再現します。最初の 3 つの ShadowedView ケースを Animated.View の子と比較します。4 つ目のケースにも「まだ Fabric と互換性がありません」というメッセージが表示されれば完了です。

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

評価

技術スタック
javascript, react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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