e95c5ca1fd28178f471ddd74363c3175.json 1.91 KB
{"ast":null,"code":"Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var getActiveChildNavigationOptions=function getActiveChildNavigationOptions(navigation,screenProps){var theme=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'light';var state=navigation.state,router=navigation.router,getChildNavigation=navigation.getChildNavigation;var activeRoute=state.routes[state.index];var activeNavigation=getChildNavigation(activeRoute.key);var options=router.getScreenOptions(activeNavigation,screenProps,theme);return options;};var _default=getActiveChildNavigationOptions;exports.default=_default;","map":{"version":3,"sources":["getActiveChildNavigationOptions.js"],"names":["getActiveChildNavigationOptions","theme","state","router","getChildNavigation","navigation","activeRoute","activeNavigation","options"],"mappings":"gFAAA,GAAMA,CAAAA,+BAA+B,CAA/BA,QAAAA,CAAAA,+BAAAA,CAAkC,UAAlCA,CAAkC,WAAlCA,CAID,CADHC,GAAAA,CAAAA,KACG,CAAA,SAAA,CAAA,MAAA,CAAA,CAAA,EAAA,SAAA,CAAA,CAAA,CAAA,GAAA,SAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CADK,OAARA,CACG,GACKC,CAAAA,KADL,CAC2CG,UAD3C,CAAA,KAAA,CACYF,MADZ,CAC2CE,UAD3C,CAAA,MAAA,CACoBD,kBADpB,CAC2CC,UAD3C,CAAA,kBAAA,CAEH,GAAMC,CAAAA,WAAW,CAAGJ,KAAK,CAALA,MAAAA,CAAaA,KAAK,CAAtC,KAAoBA,CAApB,CACA,GAAMK,CAAAA,gBAAgB,CAAGH,kBAAkB,CAACE,WAAW,CAAvD,GAA2C,CAA3C,CACA,GAAME,CAAAA,OAAO,CAAGL,MAAM,CAANA,gBAAAA,CAAAA,gBAAAA,CAAAA,WAAAA,CAAhB,KAAgBA,CAAhB,CACA,MAAA,CAAA,OAAA,CATF,CAAA,C,aAYA,+B","sourcesContent":["const getActiveChildNavigationOptions = (\n  navigation,\n  screenProps,\n  theme = 'light'\n) => {\n  const { state, router, getChildNavigation } = navigation;\n  const activeRoute = state.routes[state.index];\n  const activeNavigation = getChildNavigation(activeRoute.key);\n  const options = router.getScreenOptions(activeNavigation, screenProps, theme);\n  return options;\n};\n\nexport default getActiveChildNavigationOptions;\n"]},"metadata":{},"sourceType":"script"}