tabbar不显示



  • 在app.js中配置了tabBar,但是在rn的App上不显示,在微信小程序能正常显示

    config = {
    pages: [
    'pages/index/index',
    'pages/task/index'
    ],
    window: {
    backgroundTextStyle: 'dark',
    navigationBarBackgroundColor: '#1c6fab',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'white',
    backgroundColor: '#EFEFF4',
    },
    tabBar: {
    color: '#000',
    selectedColor: '#1c6fab',
    backgroundColor: '#fff',
    borderStyle: 'black',
    list: [
    {
    pagePath: 'pages/index/index',
    text: '首页',
    iconPath: '',
    selectedIconPath: ''
    },
    {
    pagePath: 'pages/task/index',
    text: '任务',
    iconPath: '',
    selectedIconPath: ''
    },
    ],
    position: 'bottom'
    }
    }


登录后回复