3

我尝试将 Microsoft 的 Office UI Fabric 框架添加到我的 React-Native 项目中。但是,无论何时执行此操作,我都无法再通过 Android Studio 运行我的模拟器。React-Native 不支持 Fabric 吗?

通过 Powershell 安装 Fabric: npm install office-ui-fabric-react --save

通过 Powershell 启动 Android 模拟器: react-native run-android

收到错误信息:Command 'run-android' unrecognized. Make sure that you have run 'npm install' and that you are inside a react-native project.

如果我卸载 Fabric,run-android将按预期工作。我在 Web 应用程序项目中使用 Fabric 没有任何问题。

4

0 回答 0