/RNComponent

Primary LanguageJavaScript

RNComponent

下包

先yarn install 再 pod install

列出可用设备列表

xcrun simctl list devices

选择要使用的设备(模拟器)

yarn ios --simulator "iPhone 12"

yarn ios --simulator "iPhone 14 Pro Max"

yarn ios --udid xxxxxxx

使用Xcode打开 进行编译 command + B

遇见的错误

node->getLayout().hadOverflow() |
改成
node->getLayout().hadOverflow() ||

typedef uint8_t clockid_t; 注释掉 //typedef uint8_t clockid_t;

然后先用Xcode把工程跑一遍,之后再使用VSCode

安装打包模块

npm install -g exp

开始打包

打包 android

exp build:android

打包 ios

exp build:ios

How would you like to upload your credentials? 你想如何上传证书 Expo handles all credentials, you can still provide overrides Expo帮你处理

预览

1

2