上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 1. 安装 npm install --save react-native-vector-icons 2. 修改配置 详见该说明 安卓且使用 Gradle:修改android/app/build.gradle文件, 添加apply from: file("../../node_modules/rea 阅读全文
posted @ 2024-03-15 11:09 Li_pk 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 一. 安装依赖 安装 redux、react-redux、@reduxjs/toolkit。 持久化存储还需要安装 redux-persist、@react-native-async-storage/async-storage。 npm install redux react-redux @redu 阅读全文
posted @ 2024-03-11 10:47 Li_pk 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1. 打开微信开发者工具 ① 设置 -> 代理设置 -> 选择使用系统代理 ② 安全设置 -> 开启服务端口 2. 项目中找到并打开配置文件 mainfest.json -> 微信小程序配置 -> AppID配置 3. 运行小程序 如果没有配置微信开发者工具地址,在工具下拉 -> 设置 -> 运行配 阅读全文
posted @ 2024-03-10 10:17 Li_pk 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. 打开 manifest.json 配置文件 2. 选择最后的源码视图,并找到小程序特有相关 mp-weixin 增加 "lazyCodeLoading" : "requiredComponents" /* 小程序特有相关 */ "mp-weixin" : { // ... "lazyCodeL 阅读全文
posted @ 2024-03-07 09:29 Li_pk 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 npm i -S react-native-svg react-native-qrcode-svg 2. 引入使用 默认用法 import QRCode from 'react-native-qrcode-svg'; // 不带logo render() { return ( <QRCo 阅读全文
posted @ 2024-02-29 12:28 Li_pk 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 设置里搜索Eol,\n是LF, \r\n是CRLF 阅读全文
posted @ 2024-02-28 16:12 Li_pk 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 npm安装 npm install --save-dev html5-qrcode 或直接引入 <script src="https://unpkg.com/html5-qrcode" type="text/javascript"> 2. 引入 根据需求自定义渲染 QR scanning 阅读全文
posted @ 2024-02-23 16:09 Li_pk 阅读(2054) 评论(0) 推荐(0) 编辑
摘要: 1. 安装依赖 通过 npm 安装 tailwindcss,并创建 tailwind.config.js 文件。 npm install tailwindcss -D npx tailwindcss init 安装 iconify 图标库和 TailwindCSS 插件。 npm install @ 阅读全文
posted @ 2024-02-23 10:08 Li_pk 阅读(334) 评论(0) 推荐(0) 编辑
摘要: ScrollView 高度占满页面的剩余高度,开始设置 flex: 1 发现高度占满了,但是滚动失效了。 经过测试修改: <ScrollView contentContainerStyle={{ flexGrow: 1 }}></ScrollView> 阅读全文
posted @ 2024-01-30 09:51 Li_pk 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 记录今天遇到的奇怪的问题,在vscode中使用Prettier格式化代码时,控制台报错: ["ERROR" - 9:30:18 AM] Error resolving prettier configuration for c:\My\Test\learning\src\utils\index.js 阅读全文
posted @ 2024-01-26 10:50 Li_pk 阅读(597) 评论(2) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页