我想将组件 props ( this.props
) 传递给_renderScene
函数。
class HomeContainer extends Component {
_renderScene(sceneProps) {
// <<<<< How do I get Component props(this.props) in here? >>>>
let route = sceneProps.scene.route;
if (route.key === 'list') {
return <Home />
}
}
render() {
return (
<NavigationCardStack
navigationState={this.props.homeNav}
renderScene={this._renderScene}
/>
);
}
}