react-native-skeleton-component
Version:
A skeleton component for react-native and react-native-web.
8 lines • 361 B
JavaScript
import * as React from "react";
import { Animated } from "react-native";
import { SkeletonContext } from "./SkeletonContainer";
export const Skeleton = (props) => {
const { backgroundColor } = React.useContext(SkeletonContext);
return <Animated.View {...props} style={[props.style, { backgroundColor }]}/>;
};
//# sourceMappingURL=Skeleton.js.map