Fork me on github
摘要: // TODO 二分法查bug git bisec 查看某个 hash 对应的文件修改 git show [hash] [path-to-file] 阅读全文
posted @ 2024-07-09 19:37 zjy4fun 阅读(4) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:7890/" update 阅读全文
posted @ 2024-06-30 03:10 zjy4fun 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 主要是安装python2 参考 https://github.com/meteor/meteor/issues/12777#issuecomment-1717641240 阅读全文
posted @ 2024-05-13 22:33 zjy4fun 阅读(37) 评论(0) 推荐(0) 编辑
摘要: https://github.com/zjy4fun/react-fc-order import React, { useEffect, useState } from 'react' import './App.css' function App() { const [count, setCoun 阅读全文
posted @ 2024-04-04 19:37 zjy4fun 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 把 dev 分支上多个提交记录合并成一个提交记录,这样你就可以在自己的分支上瞎几把高频率提交了🤣 git merge --squash dev git commit -m "合并 dev 分支上的多个提交记录" 阅读全文
posted @ 2023-12-29 22:02 zjy4fun 阅读(22) 评论(0) 推荐(0) 编辑
摘要: expo 官网 https://expo.dev/ https://github.com/expo/expo 用于简便移动端开发 快速创建项目 npx create-expo-app my-app . ├── App.js ├── app.json ├── assets ├── babel.conf 阅读全文
posted @ 2023-12-17 05:04 zjy4fun 阅读(78) 评论(0) 推荐(0) 编辑
摘要: UI Thread 负责用户界面的主要线程,用于处理用户界面的渲染、交互和更新。 如果在 UI 线程上执行耗时的操作,可能会导致界面卡顿,用户体验下降。 Main Thread 应用程序的主要执行线程,负责处理应用程序的主要逻辑、启动和管理应用。 在 React Native 中,UI 线程和主线程 阅读全文
posted @ 2023-12-17 04:57 zjy4fun 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 用于下拉刷新,example => https://github.com/zjy4fun/rn-FlatList-refreshControl import React, {useEffect, useState} from 'react'; import {FlatList, RefreshCon 阅读全文
posted @ 2023-12-17 04:45 zjy4fun 阅读(34) 评论(0) 推荐(0) 编辑
摘要: View 的布局发生改变的时候会触发 onLayout 函数,可以在布局发生变化的时候执行一些自定义操作,或者动态调整 UI 元素的样式和布局。 import React, { Component } from 'react'; import { View, Text } from 'react-n 阅读全文
posted @ 2023-12-17 04:15 zjy4fun 阅读(153) 评论(0) 推荐(0) 编辑
摘要: ## 使用原子化 CSS 工具包 比如把常见的 flex 布局封装成一个类名,这样就可以直接在 HTML 中使用了。 ```css .flexCenter { display: flex; flex-direction: row; justify-content: center; align-ite 阅读全文
posted @ 2023-11-07 00:19 zjy4fun 阅读(13) 评论(0) 推荐(0) 编辑