You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apply a borderRadius={'round'} which is defined in my Theme.tsx but it doesn't get applied to my SkeletonPlaceholder.Item whereas if I do borderRadius={1000} - rectangle becomes circle...
With borderRadius={'round'}
With borderRadius={1000}
Code:
import{Box,Theme}from'@/components/Theme';import{border,createRestyleComponent,}from'@shopify/restyle';importSkeletonPlaceholderfrom'react-native-skeleton-placeholder';constSkeletonPlaceholderItem=createRestyleComponent<React.ComponentProps<typeofSkeletonPlaceholder.Item&typeofBox>,Theme>([border],SkeletonPlaceholder.Item)constRoundedSkeleton=({ size =100})=>{return(<SkeletonPlaceholder><SkeletonPlaceholderItemwidth={size}height={size}borderRadius={`round`}// result with borderRadius={1000} in screen 2/></SkeletonPlaceholder>)}export{RoundedSkeleton};
Expected behavior
borderRadius={'round'} should get applied with value from my Theme.tsx which is:
Current behavior
I apply a
borderRadius={'round'}
which is defined in my Theme.tsx but it doesn't get applied to mySkeletonPlaceholder.Item
whereas if I doborderRadius={1000}
- rectangle becomes circle...With
borderRadius={'round'}
With
borderRadius={1000}
Code:
Expected behavior
borderRadius={'round'}
should get applied with value from my Theme.tsx which is:Platform:
Environment
"@shopify/restyle": "^2.4.2",
The text was updated successfully, but these errors were encountered: