Skip to content

Instantly share code, notes, and snippets.

@vikrantnegi
Created February 18, 2020 12:23
Show Gist options
  • Save vikrantnegi/e07402d2ce576b454a31a1729eebb2a6 to your computer and use it in GitHub Desktop.
Save vikrantnegi/e07402d2ce576b454a31a1729eebb2a6 to your computer and use it in GitHub Desktop.
const BookCardPlaceholderComponent = () => (
<Placeholder
Animation={ShineOverlay}
style={{
marginVertical: 6,
marginHorizontal: 15,
borderRadius: 4
}}
Left={props => (
<PlaceholderMedia
style={[
props.style,
{
width: responsiveWidth(22),
height: responsiveHeight(16)
}
]}
/>
)}
>
<PlaceholderLine style={{ marginTop: responsiveHeight(1) }} width={70} />
<PlaceholderLine style={{ marginTop: responsiveHeight(1.5) }} width={50} />
<PlaceholderLine width={50} />
</Placeholder>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment