From 6f9476e39249693cf3c14daec6679c2d3f0a27e6 Mon Sep 17 00:00:00 2001 From: Fernando Rojo Date: Thu, 2 Mar 2023 17:25:35 -0500 Subject: [PATCH] fix skeleton --- packages/moti/src/skeleton/skeleton-new.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/moti/src/skeleton/skeleton-new.tsx b/packages/moti/src/skeleton/skeleton-new.tsx index 9f460d1..d55efb0 100644 --- a/packages/moti/src/skeleton/skeleton-new.tsx +++ b/packages/moti/src/skeleton/skeleton-new.tsx @@ -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) {