React Native Expo:通过QR码在电话上运行时,应用程序看起来与Chrome中的调试不同

发布于 2025-02-11 23:46:49 字数 112 浏览 0 评论 0原文

当我在Chrome上使用Expo运行React Native应用程序时,它看起来不错。但是,当我尝试使用Android和iPhone上的QR码进行调试时,所有的盒子和位置都关闭了。这是一个错误还是我做错了什么?

When I run my React Native application with Expo on Chrome it looks fine. But when I try to debug it with the QR code on my android and iphone all the boxes and placements are off. Is this a bug or am I doing something wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

归属感 2025-02-18 23:46:49

因此,首先,很高兴看到您的一些代码,以确定问题出在哪里。记住要具体和信息丰富。话虽如此,这对我来说听起来像是定位问题,在屏幕上放置对象时,您是否使用很多绝对定位?

请记住,当您在不同屏幕上测试应用程序时,屏幕尺寸和宽高比会发生变化,如果它们与Flexbox相对位置相对位置,则您的组件可能会四处移动。

但是,请提供更多信息和相关的代码,以便我们正确评估和考虑您的问题。 :)

So first of all, it would be nice to see some of your code, in order to determine what the problem is. Remember to be specific and informative. Now that being said, this sounds to me like a problem of positioning, do you use a lot of absolute positioning when placing objects on the screen?

Remember that as you test your app on different screens, the screen sizes and aspect ratios will change, and your components might move around if they are are not relatively positioned with flexbox.

But please provide some more information, and the relevant code in order for us to properly evaluate and consider your problem. :)

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