src/modules/AppRouter.js
/**
 * AppRouter is responsible for mapping a navigator scene to a view
 */
AppRouter is responsible for mapping a navigator scene to a view
AppRouter is responsible for mapping a navigator scene to a view
function AppRouter(props) {
    const key = props.scene.route.key;
    switch (key) {
        case "Main":
            return <MainViewContainer />
        case "Features":
            return <FeaturesViewContainer/>
        case "fate":
            return <FateLineViewContainer />
        case "zodiac":
            return <ZodiacViewContainer />
        case "numerology":
            return <NumerologyViewContainer />
        case "test":
            return <WeeklyTestViewContainer />
        case "update":
            return <DailyUpdateViewContainer />
        case "testQuestions" :
            return <WeeklyTestQuestion/>
        case 'partnerZodiac':
            return <PartnerSelector />
    }
    throw new Error('Unknown navigation key: ' + key);
}
function AppRouter ( props ) { const key = props . scene . route . key ; switch ( key ) { case "Main" : return < MainViewContainer / > case "Features" : return < FeaturesViewContainer / > case "fate" : return < FateLineViewContainer / > case "zodiac" : return < ZodiacViewContainer / > case "numerology" : return < NumerologyViewContainer / > case "test" : return < WeeklyTestViewContainer / > case "update" : return < DailyUpdateViewContainer / > case "testQuestions" : return < WeeklyTestQuestion / > case 'partnerZodiac' : return < PartnerSelector / > } throw new Error ( 'Unknown navigation key: ' + key ) ; }
AppRouter is responsible for mapping a navigator scene to a view
AppRouter is responsible for mapping a navigator scene to a view