摘要:
//防抖 const debounce = (fn, delay) => { let timer; return function () { if (timer) { clearTimeout(timer); } timer = setTimeout(() => { fn(); }, delay); 阅读全文
摘要:
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 阅读全文
摘要:
yarn config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" yarn config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp 阅读全文
摘要:
https://www.npmjs.com/package/react-devtools 安装包: yarn global add react-devtools 通过命令行启动: 可以直接修改app的样式,类似于在chrome中: 参考链接: https://chat.xutongbao.top/ 阅读全文
摘要:
error C:\Users\xu\AppData\Local\Yarn\Data\global\node_modules\electron: Command failed. 解决方案: yarn config set electron_mirror https://npm.taobao.org/m 阅读全文
摘要:
使用React Native Debugger 调试过程中Network无法抓取网络请求。 /** * Set up XMLHttpRequest. The native XMLHttpRequest in Chrome dev tools is CORS * aware and won't let 阅读全文
摘要:
package.json: { "name": "m-app2", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "cross-env REACT_APP_MODE=test ex 阅读全文
摘要:
https://www.npmjs.com/package/react-native-root-toast import axios from 'axios' import { baseURL } from './config' import { Alert } from 'react-native 阅读全文
摘要:
https://reactnativeelements.com/ 装包: yarn add @rneui/themed @rneui/base yarn add react-native-safe-area-context 按钮、加载中进度条 ,分割线: import React, { useSta 阅读全文
摘要:
Icon.js: import { createIconSet } from 'react-native-vector-icons' import fontFile from '../../static/fonts/iconfont.ttf' import iconfontJson from '.. 阅读全文