是否可以使用NavigationTransitioner渲染叠加层?
<NavigationTransitioner
navigationState={this.props.navigationState}
configureTransition={this.configureTransition}
renderOverlay = {this.renderOverlay}
render={() => (
<NavigationCard
navigationState={this.props.navigationState}
renderScene={this.renderScene}
cardStyle={styles.container}
onNavigateBack={this.routeBack}
/>
)}
/>
答案 0 :(得分:1)
renderOverlay ,而是可以使用 NavigationHeader ,你可以在渲染函数中添加这样的东西
render={() => (
<View>
<NavigationCard
navigationState={this.props.navigationState}
renderScene={this.renderScene}
cardStyle={styles.container}
onNavigateBack={this.routeBack}
/>
<NavigationHeader {...props}/>
</View>
)}