-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Current behavior
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...
Code:
import { Box, Theme } from '@/components/Theme';
import {
border,
createRestyleComponent,
} from '@shopify/restyle';
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
const SkeletonPlaceholderItem = createRestyleComponent<
React.ComponentProps<typeof SkeletonPlaceholder.Item & typeof Box>,
Theme
>([border], SkeletonPlaceholder.Item)
const RoundedSkeleton = ({ size = 100 }) => {
return (
<SkeletonPlaceholder>
<SkeletonPlaceholderItem
width={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:
borderRadii: {
none: 0,
s: 4,
ms: 6,
m: 8,
lm: 10,
l: 12,
xl: 20,
round: 1000,
},Platform:
- iOS
- Android
Environment
"@shopify/restyle": "^2.4.2",
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

