From 6636f6a1d12477e58c2b113bee716752d7be9dd0 Mon Sep 17 00:00:00 2001 From: JinByun Date: Mon, 1 Jun 2026 16:24:19 -0700 Subject: [PATCH] fix: deprecated nativeStyleToProp to nativestyleMapping --- content/v5/api/styled.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/v5/api/styled.mdx b/content/v5/api/styled.mdx index e9909e4..44474fb 100644 --- a/content/v5/api/styled.mdx +++ b/content/v5/api/styled.mdx @@ -28,9 +28,9 @@ import { Svg, Circle } from "react-native-svg"; const StyledSvg = styled(Svg, { className: { target: "style", - nativeStyleToProp: { - height: true, - width: true, + nativeStyleMapping: { + height: "height", + width: "width", }, }, }); @@ -38,10 +38,10 @@ const StyledSvg = styled(Svg, { const StyledCircle = styled(Circle, { className: { target: "style", - nativeStyleToProp: { - fill: true, - stroke: true, - strokeWidth: true, + nativeStyleMapping: { + fill: "fill", + stroke: "stroke", + strokeWidth: "strokeWidth", }, }, });