Closed zrain closed 2 years ago
果然是这样, 我的 custom-tabbar
是 Page()类型的, 在本地/手机扫描预览都OK, 但到真机调试就出没有tabbar显示.
谢谢了 :)
@zrain 大佬你是怎么解决的,我的/custom-tab-bar/index.config.ts是下面这样的,也写了component: true,为啥还是真机不显示
export default { component: true }
custom-tab-bar 需要和 pages 目录平齐 --- custom-tab-bar --- pages
相关平台
微信小程序
小程序基础库: 2.12.2 使用框架: React
复现步骤
Failed to connect to github.com port 443: Operation timed out 网络不好 demo 没上传
这里问题已经解决,主要想给后来小伙伴加个备注
按照 taro 的方式书写
app.config.js
custom-tab-bar/index.jsx
在编译预览后,预览模式,和上传预览模式都正常的前提下
解决方法如下::::
注意在 custom-tab-bar/index.config.js 增加
期望结果
真机预览正常显示
实际结果
预览 - 显示 tabbar 真机预览 - 不显示 tabbar 上传预览 - 显示 tabbar
环境信息
补充信息
预览设备 iOS iPhoneX