react-native-skeleton-placeholder icon indicating copy to clipboard operation
react-native-skeleton-placeholder copied to clipboard

styled components not working

Open turker0 opened this issue 3 years ago • 3 comments

Is there any way to use with styled components e.g. image

turker0 avatar May 07 '21 13:05 turker0

i have the same issue if I pass styles directly it works, but when I try to use it with styled-components skelatonplaceholder.item's not displaying

export const StyledSkeletonView = styled(SkeletonPlaceholder.Item)<StyledSkeletonViewProps>
  ${({ $width, $height, $margin, $borderRadius }) => 
    width: ${$width};
    height: ${$height};
    margin: ${$margin || 0};
    border-radius: ${$borderRadius || 0};
  }
;

fulyakaya avatar May 11 '21 13:05 fulyakaya

hey guys, unfortunately it is not supported yet, I have to work on a solution for that

chramos avatar Jul 16 '21 14:07 chramos

Hey there! Is there anything we can do to add support for this? Is there an approach outline or the issue defined so we could help open a PR?

cvburgess avatar Oct 01 '21 13:10 cvburgess