UNPKG

roko-date-picker

Version:
23 lines (22 loc) 981 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_native_1 = require("react-native"); const react_1 = __importDefault(require("react")); const hooks_1 = require("../../features/hooks"); const Loading = ({}) => { // #region members const { theme } = (0, hooks_1.useMain)(); // #endregion // #region variables const customStyles = (0, hooks_1.useStyles)(styles, theme); // #endregion return (<react_native_1.View style={customStyles.root}> <react_native_1.ActivityIndicator color={theme?.colors.primary}/> </react_native_1.View>); }; exports.default = Loading; Loading.displayName = "Loading"; const styles = (theme) => react_native_1.StyleSheet.create({ root: { flex: 1, alignItems: "center", justifyContent: "center", backgroundColor: theme.colors.background } });