上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 88 下一页
摘要: //防抖 const debounce = (fn, delay) => { let timer; return function () { if (timer) { clearTimeout(timer); } timer = setTimeout(() => { fn(); }, delay); 阅读全文
posted @ 2022-04-15 10:53 徐同保 阅读(1) 评论(0) 推荐(0) 编辑
摘要: yarn global add expo-cli expo -V expo init m-app3 expo login https://expo.dev/ expo publish 手机下载expo go app,登录账号,也可以看到这样项目,还可以预览这个项目 yarn global add e 阅读全文
posted @ 2022-04-12 12:10 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要: yarn config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" yarn config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp 阅读全文
posted @ 2022-04-08 18:46 徐同保 阅读(0) 评论(0) 推荐(0) 编辑
摘要: https://www.npmjs.com/package/react-devtools 安装包: yarn global add react-devtools 通过命令行启动: 可以直接修改app的样式,类似于在chrome中: 参考链接: https://chat.xutongbao.top/ 阅读全文
posted @ 2022-04-07 16:58 徐同保 阅读(2) 评论(0) 推荐(0) 编辑
摘要: error C:\Users\xu\AppData\Local\Yarn\Data\global\node_modules\electron: Command failed. 解决方案: yarn config set electron_mirror https://npm.taobao.org/m 阅读全文
posted @ 2022-04-07 16:32 徐同保 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 使用React Native Debugger 调试过程中Network无法抓取网络请求。 /** * Set up XMLHttpRequest. The native XMLHttpRequest in Chrome dev tools is CORS * aware and won't let 阅读全文
posted @ 2022-04-07 11:34 徐同保 阅读(7) 评论(0) 推荐(0) 编辑
摘要: package.json: { "name": "m-app2", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "cross-env REACT_APP_MODE=test ex 阅读全文
posted @ 2022-04-07 11:11 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要: https://www.npmjs.com/package/react-native-root-toast import axios from 'axios' import { baseURL } from './config' import { Alert } from 'react-native 阅读全文
posted @ 2022-04-06 17:54 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要: https://reactnativeelements.com/ 装包: yarn add @rneui/themed @rneui/base yarn add react-native-safe-area-context 按钮、加载中进度条 ,分割线: import React, { useSta 阅读全文
posted @ 2022-04-06 17:38 徐同保 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Icon.js: import { createIconSet } from 'react-native-vector-icons' import fontFile from '../../static/fonts/iconfont.ttf' import iconfontJson from '.. 阅读全文
posted @ 2022-04-06 14:35 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 88 下一页