UNPKG

repoweaver

Version:

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

1 lines 1.3 kB
{"ast":null,"code":"\"use strict\";\n\nimport * as React from 'react';\nimport { ThemeContext } from \"./ThemeContext.js\";\nexport function useTheme() {\n var theme = React.useContext(ThemeContext);\n if (theme == null) {\n throw new Error(\"Couldn't find a theme. Is your component inside NavigationContainer or does it have a theme?\");\n }\n return theme;\n}","map":{"version":3,"names":["React","ThemeContext","useTheme","theme","useContext","Error"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/core/src/theming/useTheme.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { ThemeContext } from './ThemeContext';\n\nexport function useTheme() {\n const theme = React.useContext(ThemeContext);\n\n if (theme == null) {\n throw new Error(\n \"Couldn't find a theme. Is your component inside NavigationContainer or does it have a theme?\"\n );\n }\n\n return theme;\n}\n"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,YAAY;AAErB,OAAO,SAASC,QAAQA,CAAA,EAAG;EACzB,IAAMC,KAAK,GAAGH,KAAK,CAACI,UAAU,CAACH,YAAY,CAAC;EAE5C,IAAIE,KAAK,IAAI,IAAI,EAAE;IACjB,MAAM,IAAIE,KAAK,CACb,8FACF,CAAC;EACH;EAEA,OAAOF,KAAK;AACd","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}