腾讯会议APP
安装依赖
管理员
@react-native-community/masked-view
view制造层
@react-navigation/bottom-tabs
tab按钮
@react-navigation/native
本地依赖主程序
@react-navigation/stack
点击跳转栈
react-native-gesture-handler
路由跳转工具
react-native-reanimated
动画
react-native-safe-area-context
安全区上下文
react-native-screens
屏幕相关
react-native-swiper
轮播
react-native-vector-icons
图标
更改配置
android/app/src/main 新建 assets文件夹
index.js 复制为 index.android.js
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
项目技术
react-navigation 导航栏
官网
react-native-vector-icons 图标
安装依赖
yarn add react-native-vector-icons
添加配置
android/app/build.gradle
下添加 apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
使用
import AntDesign from 'react-native-vector-icons/AntDesign';
或 import Icon from 'react-native-vector-icons/FontAwesome';
必要时重启
mock 数据
使用ApiPost软件设计Api
react-native-video 播放视频
yarn add react-native-video react-native-video-controls
百度
打包APK
jdk/bin
目录下keytool -genkeypair -v -storetype PKCS12 -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
- 编辑
android/gradle.properties
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=*****
MYAPP_RELEASE_KEY_PASSWORD=*****
- 编辑
android/app/build.gradle
android {
...
defaultConfig { ... }
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
buildTypes {
release {
...
signingConfig signingConfigs.release
}
}
}
/android
下./gradlew assembleRelease
need learn
promise的resolve,reject