Skip to content

Instantly share code, notes, and snippets.

@fabiomazucato
Last active February 28, 2021 19:42
Show Gist options
  • Save fabiomazucato/5458decf9407bdce5bebdc00c56693e2 to your computer and use it in GitHub Desktop.
Save fabiomazucato/5458decf9407bdce5bebdc00c56693e2 to your computer and use it in GitHub Desktop.
Skeleton - Parte 2 (view.js)
import React from 'react'
import { AnimatedView } from './styles'
const Skeleton = (props) => {
const {
animation,
marginHorizontal,
marginVErtical,
circle,
height,
width
} = props
return (
<AnimatedView
opacity={animation}
width={width}
height={height}
mh={marginHorizontal}
mv={marginVErtical}
circle={circle}
/>
)
}
export default Skeleton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment