设置外层宽度,然后定位文字,给文字设置css行高(lineHeight应大于外层文字高度)
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening cleaaan.xcworkspace
碰到code 65 可能和ios包管理有关,cd ios && pod repo update && pod install && pod update
ios键盘遮挡问题,使用APSL下组件:[react-native-keyboard-aware-scrollview](https://github.com/APSL/react-native-keyboard-aware-scroll-view)
TypeError: Invalid attempt to spread non-iterable instance
mkdir release_ios
npx react-native bundle --entry-file index.js --platform ios --dev false --bundle-output release_ios/main.jsbundle --assets-dest release_ios/
release_ios
下的文件 添加到xcode项目,xx项目名 -》 add files to xxx项目 ->选择目录release_ios-》folders
类型为“Create folder references” -》 Add
cd android
./gradlew assembleRelease
keytool -genkeypair -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
更多详细操作步骤推荐参考:
Notice:Macos下可能需要sudo
/当前项目名/android/app/src/main/AndroidManifest.xml
,增加配置在application中 android:usesCleartextTraffic="true"