反应本地应用:左右交换
在Web上,订单很好,但是在移动设备上,所有内容都互换了:组件的顺序,左边的边距是右边边缘等。 我没有故意更改任何东西。从一个构建到另一种构建,顺序简单地改变了。
我从他们的一个模板中附上了一个屏幕截图,该模板显示出相同的行为(因此问题不仅限于一个项目): React-Native Template IOS应用程序iOS应用程序
谢谢!
更新:
代码: https://github.com/expo/examples/blob/master/with-tab-navigation/app.js
图像: 手机手机iOS的屏幕截图
我还使用了另一个手机进行了检查,并显示了正确的订单。可能与某种语言或地区有关吗?
On web, the order is just fine, but on mobile everything is swapped: the order of the components, left margins are right margins etc.
I did not change anything on purpose. From one build to another, the order simply changed.
I attached a screenshot from one of their templates which shows the same behavior (so the problem is not restricted to a single project):
screenshot from react-native template ios application
Thank you!
Update:
code: https://github.com/expo/examples/blob/master/with-tab-navigation/App.js
image: screenshot from mobile phone ios
I also checked with another phone and it shows the proper order. Could it be related to some language or region?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Flexbox在React Native中的工作方式与网络上的CSS相同,但有一些例外。默认值不同,而FlexDirection默认为列而不是行,将默认为flex-start而不是strave而不是strave,flexshrink默认值为0而不是1,flex参数仅支持单个数字。
https://reactnative.dev/docs/flexbox
Flexbox works the same way in React Native as it does in CSS on the web, with a few exceptions. The defaults are different, with flexDirection defaulting to column instead of row, alignContent defaulting to flex-start instead of stretch, flexShrink defaulting to 0 instead of 1, the flex parameter only supporting a single number.
https://reactnative.dev/docs/flexbox
我从移动设备上卸载了我的博览会GO应用程序,并从App Store重新安装了它。现在起作用
I uninstalled my Expo Go application from mobile and reinstalled it from App Store. Works now