摘要: 通常情况下不要用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 阅读(15) 评论(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 阅读(237) 评论(0) 推荐(0)
摘要: 我想实现的效果是这样的: 注意:Modal的背景还是其他的tab,并没有变化,等Modal消失后Screen还是原来的screen。 Solution: 因为中间的自定义图标按钮需要有一部分在Tab中,所以还是把icon作为tab中的一个screen的,于是就借用:tabBarButton 来实现, 阅读全文
posted @ 2024-04-02 15:02 saaspeter 阅读(45) 评论(0) 推荐(0)