Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
21 lines
544 B
JavaScript
21 lines
544 B
JavaScript
// Module ID: 1555
|
|
// Function ID: 1556
|
|
// Dependencies: [19, 1520]
|
|
// Exports: useTheme
|
|
|
|
// Module 1555
|
|
import _mod1520 from "module_1520" /* 1520 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useTheme = function useTheme() {
|
|
const context = noop.useContext(_mod1520.ThemeContext);
|
|
if (null == context) {
|
|
const _Error = Error;
|
|
const error = new Error("Couldn't find a theme. Is your component inside NavigationContainer or does it have a theme?");
|
|
throw error;
|
|
} else {
|
|
return context;
|
|
}
|
|
};
|