【发布时间】:2015-06-26 17:58:17
【问题描述】:
试图让 NavigatorIOS 在 React Native 中工作,但我无法让按钮显示在右侧。当用户使用 Facebook API 成功登录时,我将调用此代码块:
this.props.navigator.replace({
title:"Agni",
component: SwipeScreen,
rightButtonTitle: 'Matches',
onRightButtonPress: () => { console.log("matches") },
passProps:{'token': {result: info}},
});
调用 .replace 而不是 .push 是否与为什么它不会出现有关?
谢谢。
【问题讨论】:
标签: ios reactjs react-native