04 2024 档案

摘要:我对这几个概念粗浅的理解: 导数: 对于一个方程:y=f(x),在某点的导数就是该点的切线的斜率,也即:f'(x) = dy/dx 。对于P0点的导数,就是角度∂的tan值,但是一般也不容易计算,所以可以用lim求极限的方式,也即计算PP0线无限接近P0的tan角度的值。 微分的定义可以粗略的人为是 阅读全文
posted @ 2024-04-19 15:05 saaspeter 阅读(99) 评论(0) 推荐(0) 编辑
摘要:React Native的Debug基础: https://reactnative.dev/docs/next/debugging 调出开发菜单Dev Menu。 cmd+D 或 Device -> Shake 在Dev Menu上可以选择“Show Element Inspector”,显示UI上 阅读全文
posted @ 2024-04-15 21:55 saaspeter 阅读(158) 评论(0) 推荐(0) 编辑
摘要:Mobx 是状态管理的框架,可以用在多个JS框架上。与之对应的是Redux:: https://blog.logrocket.com/understanding-redux-tutorial-examples/ 官方文档:(mobx)https://github.com/mobxjs/mobx ht 阅读全文
posted @ 2024-04-12 18:39 saaspeter 阅读(40) 评论(0) 推荐(0) 编辑
摘要:官方文档:https://reactnative.dev/docs/flexbox/#absolute--relative-layout 另外一片文档:https://medium.com/wix-engineering/the-full-react-native-layout-cheat-shee 阅读全文
posted @ 2024-04-12 12:50 saaspeter 阅读(21) 评论(0) 推荐(0) 编辑
摘要:通常情况下不要用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 阅读全文
posted @ 2024-04-02 15:31 saaspeter 阅读(4) 评论(0) 推荐(0) 编辑
摘要:https://medium.com/@bobjunior542/effortlessly-use-react-fc-with-typescript-best-practices-91aa7fc057c7 React Function Components (FCs) have become a p 阅读全文
posted @ 2024-04-02 15:10 saaspeter 阅读(126) 评论(0) 推荐(0) 编辑
摘要:我想实现的效果是这样的: 注意:Modal的背景还是其他的tab,并没有变化,等Modal消失后Screen还是原来的screen。 Solution: 因为中间的自定义图标按钮需要有一部分在Tab中,所以还是把icon作为tab中的一个screen的,于是就借用:tabBarButton 来实现, 阅读全文
posted @ 2024-04-02 15:02 saaspeter 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示