依赖 npx expo install expo-router 会自动在app.json的expo.plugin中添加 手动将package.json中的main替换为:expo-router/entry 基本 文件即路由 app下的所有目录和文件会自动解析为路由 存在一个目录下有_layout时,
扩展ID:d-koppenhagen.file-tree-to-text-generator 点击扩展的设置,再点击Exclude中的edit in setting.json 可以编辑将某些目录排除在外(如node_modules) 效果: </
安装Android Studio 开发不使用这个IDE,用它安装AVD、SDK、tools等 所需的版本会随着版本更新而不同,具体安装什么版本的sdk可以查看rn官网页面:https://reactnative.dev/docs/next/set-up-your-environment?os=win
用它安装软件会自动配置环境变量,简化安装过程 安装工具 进入链接:https://chocolatey.org/install 复制命令行,用管理员身份打开Power Shell,粘贴命令 choco -? #检查是否安装完成 常用命令 choco search jdk17 #搜索软件 choco
LocalFocusManager 清除或移动焦点 val focusRequester = remember { FocusRequester() } var focusManager = LocalFocusManager.current LaunchedEffect(isShow) {
需要一台服务器 frp下载链接:https://github.com/fatedier/frp/releases frp文档:https://gofrp.org/zh-cn/docs/reference/server-configures/#authserverconfig 下载之后有几个文件:fr
Brush相关文档 Brush 刷子,用于创建纹理和渐变图像 linearGradient start和end的取值范围和元素大小有关,下面的Box为200dp所以用with(LocalDensity.current) { 200.dp.toPx() }转成了Float
更新compose版本 仓库地址:https://maven.google.com/web/index.html?q=androidx.compose.#androidx.compose.ui:ui-android:1.8.1 查看最新版本并复制Gradle Kotlin DSL,如:impleme