NativeBase抽屉道具

时间:2018-05-22 08:50:50

标签: react-native native-base

是否可以在Drawer的侧边栏传递道具(SideBar i' ts我的自定义组件)。在此示例中,测试道具未在SideBar中显示

if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
      //create alarm
}

2 个答案:

答案 0 :(得分:2)

是的,可以将道具传递给侧边栏自定义组件

SELECT value 
FROM STRING_SPLIT('<166>%ASA-6-302013: Built outbound TCP connection 322558458 for ethKASSY:192.168.1.13/10001 (10.21.8.13/10001) to ethASK_EXT_TSSM:10.43.8.24/5508 (192.168.1.10/30475) ', ' ') 
where value in('ethKASSY:192.168.1.13/10001')

答案 1 :(得分:0)

您可以将侧边栏组件添加到Drawer DrawerNavigator,如下所示

const DrawerNav = DrawerNavigator({
    MainScreen: {
        screen: TabNav
    },
    ProfileScreen: {
        screen: ProfileNav
    },
    NotificationScreen : {
        screen: NotificationNav

    },
    RewardScreen: {
        screen : RewardNav
    }


},{
    drawerPosition: 'left',
    initialRouteName: 'MainScreen',
    contentComponent: props => <SideBarNav {...props} test="12"/>
});