1
私はreact-router-native
を取り出してCRNA
アプリを使用しています。 コンポーネントを<NativeRouter>
に追加しました。in the docsと表示されていますが、発砲していないようです。反応ルータ固有のAndroidBackButtonが起動していません
これをデバッグして、正しく値を取得できないかどうかを確認する方法はありますか?私は<Redirect>
と<Link>
私のアプリでは、ルーティングを行うために使用しているので、RRの歴史項目が動作する必要があります。
どのような考えや考えを歓迎します。
export default props => (
<NativeRouter>
<AndroidBackButton>
<Switch>
<Route exact path="/" component={Flash} />
<Route path="/will_not_work" render={routeProps => <WillNotWork {...props} {...routeProps} />} />
<View style={styles.container}>
<Switch>
<Route path="/menu" render={routeProps => <Menu {...props} {...routeProps} />} />
<Route path="/car_compatibility" render={routeProps => <CarCompatibilityChecker {...props} {...routeProps} />} />
<Route path="/how_it_works" render={routeProps => <HowItWorks {...props} {...routeProps} />} />
<Route path="/app_demo" render={routeProps => <AppDemo {...props} {...routeProps} />} />
</Switch>
</View>
</Switch>
</AndroidBackButton>
</NativeRouter>
);