V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jiuzhougege
V2EX  ›  前端开发

expo 是好用,但是在 expo app 里运行和独立打包 app 很多细节表现不一致

  •  
  •   jiuzhougege · 74 天前 · 662 次点击
    这是一个创建于 74 天前的主题,其中的信息可能已经有所发展或是发生改变。
    react native 开发的 demo app ,在 expo go app 中运行正常,无论是 ios simulator 还是 iphone 真机.
    但是无论是本地 xcode 打包还是通过 eas 打包后安装到打开开发者模式的真机上,部分功能不正常:如某些 css 不生效,部分网络请求无法发起,也不报错,点击图片放大屏幕卡死等,准确的说是 expo 中怎么都正常,独立打包 app 有些功能无法使用,应该如何排查问题?

    css 如下
    const styles = StyleSheet.create({
    avatar: {
    width: 48, // 12 * 4 (base size in Tailwind CSS is 4)
    height: 48, // 12 * 4 (base size in Tailwind CSS is 4)
    borderRadius: 24, // 50% of width/height to make it fully rounded
    },
    });
    应该是圆形,但是打包后显示是正方形
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3752 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:55 · PVG 08:55 · LAX 17:55 · JFK 20:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.