Last active
February 28, 2021 19:42
-
-
Save fabiomazucato/5458decf9407bdce5bebdc00c56693e2 to your computer and use it in GitHub Desktop.
Skeleton - Parte 2 (view.js)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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