Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Unable to create a Native Components (Fabric) following documentation

未关闭
#15,519 3 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@vineethkuttan 已经在做这个了。

开始于 2026年1月6日。

评估

这个 Issue 还没有评估数据。

描述

bug
Problem Description

Just following Native Platform: Native Component (Fabric) I get a runtime error and not a basic, working native component.

The exact error I get is

View config getter callback for component CircleMask must be a function (received undefined)

It's frustrating as a simple first step in realizing a basic native component is hindered. This used to work in 0.80 days.

Steps To Reproduce
  1. Follow Native Platform: Getting Started
  2. Follow Native Platform: Native Modules
  3. Follow Native Platform: Native Components (Fabric)
Expected Results

An app window should show a circle mask component. This isn't the case. Aforementioned runtime error is seen.

CLI version

20.0.0

Environment
System:
  OS: Windows 11 10.0.26100
  CPU: (12) x64 Intel(R) Xeon(R) W-2133 CPU @ 3.60GHz
  Memory: 43.62 GB / 63.73 GB
Binaries:
  Node:
    version: 25.2.1
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 3.6.1
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 11.6.2
    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.22621.0
      - 10.0.26100.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.14.36811.4 (Visual Studio Enterprise 2022)
    - 18.1.11312.151 (Visual Studio Enterprise 2026)
Languages:
  Java: Not Found
  Ruby: Not Found
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.5
    wanted: 0.81.5
  react-native-windows:
    installed: 0.0.0-canary.1022
    wanted: 0.0.0-canary.1020
Target React Native Architecture

New Architecture (WinAppSDK) Only

Target Platform Version

10.0.26100

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

主要语言
C++
星标
17.4k
派生
1.2k
平均合并
2 天 17 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/react-native-windows 的其他 Issue

查看 microsoft/react-native-windows 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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