UNPKG

1.06 kBSource Map (JSON)View Raw
1{"version":3,"names":["React","createNavigationContainerRef","useNavigationContainerRef","navigation","useRef","current"],"sources":["useNavigationContainerRef.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport createNavigationContainerRef from './createNavigationContainerRef';\nimport type { NavigationContainerRefWithCurrent } from './types';\n\nexport default function useNavigationContainerRef<\n ParamList extends {} = ReactNavigation.RootParamList\n>(): NavigationContainerRefWithCurrent<ParamList> {\n const navigation =\n React.useRef<NavigationContainerRefWithCurrent<ParamList> | null>(null);\n\n if (navigation.current == null) {\n navigation.current = createNavigationContainerRef<ParamList>();\n }\n\n return navigation.current;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,4BAAP,MAAyC,gCAAzC;AAGA,eAAe,SAASC,yBAAT,GAEmC;EAChD,MAAMC,UAAU,GACdH,KAAK,CAACI,MAAN,CAAkE,IAAlE,CADF;;EAGA,IAAID,UAAU,CAACE,OAAX,IAAsB,IAA1B,EAAgC;IAC9BF,UAAU,CAACE,OAAX,GAAqBJ,4BAA4B,EAAjD;EACD;;EAED,OAAOE,UAAU,CAACE,OAAlB;AACD"}
\No newline at end of file