jiuzhougege

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

  •  
  •   jiuzhougege · Jul 6, 2024 · 1526 views
    This topic created in 674 days ago, the information mentioned may be changed or developed.
    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
    },
    });
    应该是圆形,但是打包后显示是正方形
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4098 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    ♥ Do have faith in what you're doing.