【问题标题】:Is there any common library that can be used for navigation for both web and mobile是否有任何通用库可用于网络和移动导航
【发布时间】:2021-01-07 12:55:32
【问题描述】:

我在使用“create-react-app”命令创建的示例应用程序中尝试了“react-navigation”。它适用于移动设备,但不适用于网络。 还尝试使用“react-router-dom”实现导航,这非常适合 web。但不适用于移动设备提供“错误:不变式失败:浏览器历史记录需要 DOM”。

【问题讨论】:

  • 为什么react-navigation 不能在网络上工作? “不工作”到底是什么意思?
  • 我只能看到导航栏,看不到我设计的屏幕内容。

标签: reactjs react-native react-router react-navigation


【解决方案1】:

https://reactrouter.com

//本站将为您提供本地和网络方面的帮助,谢谢

【讨论】:

  • 我使用了 react-router-native 但在移动设备中它没有显示带有后退按钮的导航栏
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-11-21
  • 2012-02-21
  • 1970-01-01
  • 2015-04-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多