Skip to content

Commit

Permalink
fix skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Mar 2, 2023
1 parent 4ec9a4e commit 6f9476e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/moti/src/skeleton/skeleton-new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Skeleton(props: MotiSkeletonProps) {
width: width ?? (children ? '100%' : DEFAULT_SIZE),
height: height ?? '100%',
overflow: 'hidden',
backgroundColor,
backgroundColor: show ? backgroundColor : undefined,
}}
onLayout={({ nativeEvent }) => {
if (measuredWidthSv.value !== nativeEvent.layout.width) {
Expand Down

0 comments on commit 6f9476e

Please sign in to comment.