2

对 appcenter 使用本机反应,如何将构建设置为使用 index.js?

我收到以下错误:

error The resource `/Users/runner/work/1/s/index.ios.js` was not found

我可以在预构建脚本上指定这个吗?

4

1 回答 1

1

好的,经过一段时间的挖掘,这是修复:

只需添加

index.ios.js

项目根目录下的文件

在文件中,为我的项目导入基础

require ('./src/index.native')

之后构建很好

于 2020-11-02T05:47:32.420 回答