React-Native Tab reset传递参数

2017-12-18  本文已影响0人  董董董董董董董董董大笨蛋
// const resetAction = NavigationActions.reset({
    //     index: 0,
    //     actions: [
    //         NavigationActions.navigate({ routeName: 'Main',params: { token: '123456' } }),
    //     ]
    // })
    // NAVIGATION.dispatch(resetAction);
    const resetAction = NavigationActions.reset({
        index: 0,
        actions: [
            NavigationActions.init({
                    routeName: 'Main',
                    params: {
                      onLogout: '34',
                      user: '8374598'
                    }
        })]
    })
    NAVIGATION.dispatch(resetAction)
上一篇下一篇

猜你喜欢

热点阅读