仿知乎客户端,使用 React Native 开发。
- 底部的导航栏。
- 推荐页面顶部 tab 栏。
- 推荐页面。
- 推荐页面数据下拉刷新和上拉加载更多。
- 文章详情页面。
- 通过接口获取数据。
- 移除
react-native-vector-icons
引用到的多余字体文件,减少包体积 - 推荐页面顶部的搜索栏
- 详情页面顶部操作栏,显示返回按钮
- 推荐页面单个文章更多操作弹窗
- 适配横屏
- ESLint 规则调整
- 完成 splash screen 。
不在同一个网段中。网络连接在同一个网段中解决问题。
Loading dependency graph, done
使用 react-native run-android
。yarn start
命令对设备无效,对模拟器有效,所以一直卡在 Loading dependency graph, done 。
执行 adb reverse tcp:8081 tcp:8081
命令,转发端口数据。
3. Slider has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/slider' instead of 'react-native'.
react-native-gesture-handler 依赖导致的错误
4. ViewPagerAndroid has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'.
react-native-gesture-handler 依赖导致的错误
ios 支持,android 不支持。
在面板上鼠标右击,点击 Enable Network Inspect,启用网络请求检查。重新加载页面,在 Network 面板中查看请求。