UNPKG

@gaddario98/react-native-core

Version:
25 lines (24 loc) 1.7 kB
'use strict';var jsxRuntime=require('react/jsx-runtime'),native=require('@react-navigation/native'),providers=require('@gaddario98/react-core/providers');var AppProviders = function AppProviders(_ref) { var children = _ref.children, theme = _ref.theme, _ref$dark = _ref.dark, dark = _ref$dark === void 0 ? true : _ref$dark; var _a, _b, _c, _d, _e, _f; return jsxRuntime.jsx(providers.AppProviders, { children: jsxRuntime.jsx(native.ThemeProvider, { value: { fonts: native.DefaultTheme.fonts, colors: { background: (_a = theme === null || theme === void 0 ? void 0 : theme.background) !== null && _a !== void 0 ? _a : "#121212", border: (_b = theme === null || theme === void 0 ? void 0 : theme.border) !== null && _b !== void 0 ? _b : "#333333", primary: (_c = theme === null || theme === void 0 ? void 0 : theme.primary) !== null && _c !== void 0 ? _c : "#6200ee", text: (_d = theme === null || theme === void 0 ? void 0 : theme.text) !== null && _d !== void 0 ? _d : "#ffffff", card: (_e = theme === null || theme === void 0 ? void 0 : theme.card) !== null && _e !== void 0 ? _e : "#121212", notification: (_f = theme === null || theme === void 0 ? void 0 : theme.notification) !== null && _f !== void 0 ? _f : "#6200ee" }, dark: dark }, children: children }) }); };Object.defineProperty(exports,"BaseAppProvider",{enumerable:true,get:function(){return providers.AppProviders}});Object.defineProperty(exports,"queryClient",{enumerable:true,get:function(){return providers.queryClient}});exports.AppProviders=AppProviders;//# sourceMappingURL=index.js.map