Skip to content

Commit

Permalink
chore: remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Mar 2, 2021
1 parent 2b5f86c commit e35a8e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/skeleton/src/skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Props = {
*/
show?: boolean
/**
* Width of the skeleton. Defaults to `32` as the `minWidth`.
* Width of the skeleton. Defaults to `32` as the `minWidth`. Sets the container's `minWidth` to this value if defined, falling back to 32.
*/
width?: string | number
/**
Expand Down Expand Up @@ -131,8 +131,6 @@ export default function Skelton(props: Props) {
return undefined
}

console.log({ measuredWidth })

const outerHeight = getOuterHeight()

return (
Expand Down Expand Up @@ -166,8 +164,7 @@ export default function Skelton(props: Props) {
}
}
onLayout={({ nativeEvent }) => {
console.log('[measured]', nativeEvent.layout)
if (measuredWidth) return
if (measuredWidth === nativeEvent.layout.width) return

setMeasuredWidth(nativeEvent.layout.width)
}}
Expand Down

0 comments on commit e35a8e4

Please sign in to comment.