여기에 문서에서 뭔가 빠졌을 수 있습니다.`react-native-router-flux`은 자식을 렌더링하는 부모 구성 요소를 허용합니까?
react-native-router-flux
은 하위 장면을 렌더링하는 구성 요소가있는 부모 장면을 허용합니까? 코드에서
이 라우팅, 말하는 :
<Scene key="home" component={ApplicationRoot}>
<Scene key="settings" component={Settings} />
</Scene>
ApplicationRoot
구성 요소 것
class ApplicationRoot extends React.Component {
constructor() { .. }
render() {
return(
<View>{this.props.children}</View>
);
}
}
여기를 Settings
을 전달합니다.
ApplicationRoot
내에서 라이프 사이클 기능을 사용할 수있는 아이디어는 모든 중첩 된 경로에 적용되는 응용 프로그램 수준 기능 (예 : 로그인 한 경우 확인, 로그 아웃 등)을 처리하는 것입니다.
랩핑 상위 구성 요소를 통해 가능하지 않은 경우이를 달성하는 방법을 알고있는 사람이 있습니까?