UNPKG

repoweaver

Version:

A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies

1 lines 1.5 kB
{"ast":null,"code":"\"use strict\";\n\nimport * as React from 'react';\nimport { LocaleDirContext } from \"./LocaleDirContext.js\";\nexport function useLocale() {\n const direction = React.useContext(LocaleDirContext);\n if (direction === undefined) {\n throw new Error(\"Couldn't determine the text direction. Is your component inside NavigationContainer?\");\n }\n return {\n direction\n };\n}","map":{"version":3,"names":["React","LocaleDirContext","useLocale","direction","useContext","undefined","Error"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/native/src/useLocale.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { LocaleDirContext } from './LocaleDirContext';\n\n/**\n * Hook to access the text direction specified in the `NavigationContainer`.\n */\nexport function useLocale() {\n const direction = React.useContext(LocaleDirContext);\n\n if (direction === undefined) {\n throw new Error(\n \"Couldn't determine the text direction. Is your component inside NavigationContainer?\"\n );\n }\n\n return { direction };\n}\n"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,gBAAgB;AAKzB,OAAO,SAASC,SAASA,CAAA,EAAG;EAC1B,MAAMC,SAAS,GAAGH,KAAK,CAACI,UAAU,CAACH,gBAAgB,CAAC;EAEpD,IAAIE,SAAS,KAAKE,SAAS,EAAE;IAC3B,MAAM,IAAIC,KAAK,CACb,sFACF,CAAC;EACH;EAEA,OAAO;IAAEH;EAAU,CAAC;AACtB","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}