反应本地应用:左右交换

发布于 2025-02-10 00:32:58 字数 742 浏览 2 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜夜流光相皎洁 2025-02-17 00:32:58

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

ㄟ。诗瑗 2025-02-17 00:32:58

我从移动设备上卸载了我的博览会GO应用程序,并从App Store重新安装了它。现在起作用

I uninstalled my Expo Go application from mobile and reinstalled it from App Store. Works now

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文