react / react/react-native

Interop Layer Android Display issue

未关闭
#39,313 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Needs: Repro Never gets stale Platform: Android Type: New Architecture
主要语言
C++
星标
127k
派生
25.3k
平均合并
1 天 23 小时
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Android UnimplementedView 路径开始,在启用新架构的情况下复现提供的 App 示例。将前三个 ShadowedView 情况与 Animated.View 子节点进行比较;当第四个情况也显示“尚不兼容 Fabric”消息时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react-native
领域
mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。