摘要: 一、安装依赖 npm i @reduxjs/toolkit react-redux 二、创建store与slice import {createSlice} from '@reduxjs/toolkit' const messageSlice = createSlice({ name: 'messa 阅读全文
posted @ 2026-01-25 13:59 派大星在干嘛 阅读(2) 评论(0) 推荐(0)
摘要: 一、引入相关依赖 npm i @reduxjs/toolkit react-redux expo-secure-store axios 依赖 作用 @reduxjs/toolkit 简化 Redux 开发的官方工具包,提供标准化的 Redux 最佳实践 react-redux 连接 React 组件 阅读全文
posted @ 2026-01-24 21:40 派大星在干嘛 阅读(5) 评论(0) 推荐(0)
摘要: 我在使用expo-video的过程中,发现它的全屏功能很是差强人意,所以想自己二次封装一下 如果看过我之前的expo文章,应该可以轻松的读懂下面的代码 一、安装相关依赖 npx expo install expo-video expo-router expo-screen-orientation e 阅读全文
posted @ 2026-01-21 21:45 派大星在干嘛 阅读(17) 评论(0) 推荐(0)
摘要: 一、安装相关依赖 npm install -g eas-cli 二、登录 eas login 执行命令后会让你输入expo中的账号与密码,需要提前在expo官网注册(网页能正常访问,但注册流程需要梯子才行) 三、生成eas.json配置文件 eas build:configure 修改配置文件 "p 阅读全文
posted @ 2026-01-06 21:59 派大星在干嘛 阅读(55) 评论(0) 推荐(0)
摘要: 参考网站 一、引入相关的依赖 npx expo install expo-router react-native-safe-area-context react-native-screens expo-linking expo-constants expo-status-bar npx expo i 阅读全文
posted @ 2025-12-26 21:55 派大星在干嘛 阅读(9) 评论(0) 推荐(0)