摘要:
react native上的notifee组建可发送local notification和remote push notification,可订阅各种Event。我使用的是local notification。另一个与之对应的是expo notification,也是很好的组建,但我的app未来想用 阅读全文
摘要:
install packages in a virtual environment using pip and venv https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environmen 阅读全文
摘要:
pip安装出错: error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install py 阅读全文
摘要:
from: https://javascript.info/promise-basics Promise Imagine that you’re a top singer, and fans ask day and night for your upcoming song. To get some 阅读全文
摘要:
有时需要在bottom tab中的screen中隐藏tab bar,包括其占用的高度也隐藏。参见:https://medium.com/@indrajit.suryakanta.9/customise-tabbar-in-react-native-bottom-tab-navigator-e2ced 阅读全文
摘要:
我对这几个概念粗浅的理解: 导数: 对于一个方程:y=f(x),在某点的导数就是该点的切线的斜率,也即:f'(x) = dy/dx 。对于P0点的导数,就是角度∂的tan值,但是一般也不容易计算,所以可以用lim求极限的方式,也即计算PP0线无限接近P0的tan角度的值。 微分的定义可以粗略的人为是 阅读全文
摘要:
React Native的Debug基础: https://reactnative.dev/docs/next/debugging 调出开发菜单Dev Menu。 cmd+D 或 Device -> Shake 在Dev Menu上可以选择“Show Element Inspector”,显示UI上 阅读全文
摘要:
Mobx 是状态管理的框架,可以用在多个JS框架上。与之对应的是Redux:: https://blog.logrocket.com/understanding-redux-tutorial-examples/ 官方文档:(mobx)https://github.com/mobxjs/mobx ht 阅读全文
摘要:
官方文档:https://reactnative.dev/docs/flexbox/#absolute--relative-layout 另外一片文档:https://medium.com/wix-engineering/the-full-react-native-layout-cheat-shee 阅读全文
摘要:
通常情况下不要用Ref去获取child component: In React, it’s generally recommended to use props and state to manage your component data flow. While refs are a powerf 阅读全文