React Native Expo:通过QR码在电话上运行时,应用程序看起来与Chrome中的调试不同
当我在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,首先,很高兴看到您的一些代码,以确定问题出在哪里。记住要具体和信息丰富。话虽如此,这对我来说听起来像是定位问题,在屏幕上放置对象时,您是否使用很多绝对定位?
请记住,当您在不同屏幕上测试应用程序时,屏幕尺寸和宽高比会发生变化,如果它们与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. :)