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
![Simulator Screen Shot - iPhone 14 Pro - 2023-09-07 at 15 35 08](https://private-user-images.githubusercontent.com/69720050/266334064-0d02dc7f-0d0a-4434-802f-8854fd1baec5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTM5ODksIm5iZiI6MTczOTE1MzY4OSwicGF0aCI6Ii82OTcyMDA1MC8yNjYzMzQwNjQtMGQwMmRjN2YtMGQwYS00NDM0LTgwMmYtODg1NGZkMWJhZWM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAyMTQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhOTdhOTBkYzMxNGU5M2FhYTU1OTQyMmY2NjUxMzRhMTc4YWNkZTIyZmU2ZWEwNDQyOWU4MDkzZmYyYTUzZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6U5hhNw46pm8S8YE-nZfZ70srulQ5ufjX4E4x6kJd6M)
borderRadius={'round'}
With
![Simulator Screen Shot - iPhone 14 Pro - 2023-09-07 at 15 36 23](https://private-user-images.githubusercontent.com/69720050/266334353-a074ba25-73b5-4003-9646-7484e15a5434.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTM5ODksIm5iZiI6MTczOTE1MzY4OSwicGF0aCI6Ii82OTcyMDA1MC8yNjYzMzQzNTMtYTA3NGJhMjUtNzNiNS00MDAzLTk2NDYtNzQ4NGUxNWE1NDM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAyMTQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0NDhlNWIwZDkwZTc2ODMzNzQzY2I2YWVlYTU1MjJiMjk0NzJiZGM5OWZhNjg1MDVlYzVlOGE1ZWU1YTU0MzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QrzAaH_aA_GBn-LTZ_XdZzKW1Ue4ibmOffc2VxMQKaY)
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: