【发布时间】:2018-08-07 09:35:56
【问题描述】:
我想在 react-native 中使用 navigation.boBack() 导航后重新加载我的屏幕。
这是我的代码。
// navigation options
static navigationOptions = ({ navigation }) => {
const { params = {} } = navigation.state;
return {
headerTitle: "Comment",
headerTitleStyle: {
marginLeft: 0,
width: "100%",
textAlign: "center",
fontWeight: 'bold',
fontFamily: "helvetica",
},
headerStyle: {
paddingLeft: 10,
paddingRight: 10
},
headerLeft: (
<ClickableIcon
source={Close}
height={35}
width={35}
onIconPressed={() => {
navigation.goBack();
}}
/>
),
headerRight: <View />
};
};
我怎样才能做到这一点?
【问题讨论】:
标签: react-native