会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
徐同保
web前端行业的小学生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
28
29
30
31
32
33
34
35
36
···
88
下一页
2022年4月15日
resize事件监听窗口变化
摘要: //防抖 const debounce = (fn, delay) => { let timer; return function () { if (timer) { clearTimeout(timer); } timer = setTimeout(() => { fn(); }, delay);
阅读全文
posted @ 2022-04-15 10:53 徐同保
阅读(11)
评论(0)
推荐(0)
2022年4月12日
expo 创建react native项目,如何预览,如何打包apk
摘要: 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 徐同保
阅读(63)
评论(0)
推荐(0)
2022年4月8日
yarn安装turtle-cli
摘要: 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 徐同保
阅读(11)
评论(0)
推荐(0)
2022年4月7日
使用react-devtools调试react-native项目
摘要: https://www.npmjs.com/package/react-devtools 安装包: yarn global add react-devtools 通过命令行启动: 可以直接修改app的样式,类似于在chrome中: 参考链接: https://chat.xutongbao.top/
阅读全文
posted @ 2022-04-07 16:58 徐同保
阅读(36)
评论(0)
推荐(0)
yarn安装electron报错
摘要: 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 徐同保
阅读(40)
评论(0)
推荐(0)
react native调试在谷歌浏览器中查看network信息
摘要: 使用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 徐同保
阅读(79)
评论(0)
推荐(0)
expo cli创建的react native项目配置环境变量
摘要: 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 徐同保
阅读(81)
评论(0)
推荐(0)
2022年4月6日
react-native-root-toast
摘要: 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 徐同保
阅读(39)
评论(0)
推荐(0)
React Native Elements
摘要: 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 徐同保
阅读(31)
评论(0)
推荐(0)
React Native使用react-native-vector-icons和iconFont做字体图标
摘要: 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 徐同保
阅读(27)
评论(0)
推荐(0)
上一页
1
···
28
29
30
31
32
33
34
35
36
···
88
下一页
公告