UNPKG

940 BSource Map (JSON)View Raw
1{"version":3,"names":["findFocusedRoute","state","current","routes","index","route"],"sources":["findFocusedRoute.tsx"],"sourcesContent":["import type { InitialState } from '@react-navigation/routers';\n\nexport default function findFocusedRoute(state: InitialState) {\n let current: InitialState | undefined = state;\n\n while (current?.routes[current.index ?? 0].state != null) {\n current = current.routes[current.index ?? 0].state;\n }\n\n const route = current?.routes[current?.index ?? 0];\n\n return route;\n}\n"],"mappings":"AAEA,eAAe,SAASA,gBAAT,CAA0BC,KAA1B,EAA+C;EAAA;;EAC5D,IAAIC,OAAiC,GAAGD,KAAxC;;EAEA,OAAO,aAAAC,OAAO,UAAP,4CAASC,MAAT,mBAAgBD,OAAO,CAACE,KAAxB,2DAAiC,CAAjC,EAAoCH,KAApC,KAA6C,IAApD,EAA0D;IAAA;;IACxDC,OAAO,GAAGA,OAAO,CAACC,MAAR,oBAAeD,OAAO,CAACE,KAAvB,6DAAgC,CAAhC,EAAmCH,KAA7C;EACD;;EAED,MAAMI,KAAK,gBAAGH,OAAH,8CAAG,UAASC,MAAT,iCAAgBD,OAAhB,8CAAgB,UAASE,KAAzB,6DAAkC,CAAlC,CAAd;EAEA,OAAOC,KAAP;AACD"}
\No newline at end of file