@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
21 lines (19 loc) • 605 B
JavaScript
import React, { useMemo, memo } from 'react';
import { Fade } from 'rn-placeholder';
import Theme from '../theme';
import { varCreator } from './style';
const SkeletonActive = _ref => {
let {
children
} = _ref;
const TOKENS = Theme.useThemeTokens();
const CV = Theme.createVar(TOKENS, varCreator);
const style = useMemo(() => ({
backgroundColor: CV.skeleton_color_active
}), [CV.skeleton_color_active]);
return /*#__PURE__*/React.createElement(Fade, {
style: style
}, children);
};
export default /*#__PURE__*/memo(SkeletonActive);
//# sourceMappingURL=skeleton-active.js.map