Skip to content

Feat/skeleton view full width #1950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 7, 2022
Merged

Conversation

Inbal-Tish
Copy link
Collaborator

Description

Skeleton - full width - expose 'shimmerStyle' prop.

Changelog

Skeleton - full width - expose 'shimmerStyle' prop.

*/
width?: number;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is from the previous PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll regenerate types. Thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't seem to regenerate the file...

@@ -324,7 +330,7 @@ class SkeletonView extends Component<InternalSkeletonViewProps, SkeletonState> {
};

renderListItemTemplate = () => {
const {style, ...others} = this.props;
const {style, width, ...others} = this.props; // eslint-disable-line
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Removing

if (circle || circleOverride) {
borderRadius = BorderRadiuses.br100;
size = Math.max(width, height);
}
size = Math.max(width || 0, height);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

borderRadius={5}
showContent={isDataAvailable}
renderContent={() => <Text>Lorem Ipsum is simply dummy text of the industry.</Text>}
colors={[Colors.red70, Colors.red50, Colors.red70]}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you left this on purpose, I don't like it too much.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did. To remove it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, but it might be a matter of taste, so it's up to you

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it since it a "custom" example

@M-i-k-e-l M-i-k-e-l merged commit 4e27785 into master Apr 7, 2022
@Inbal-Tish Inbal-Tish deleted the feat/SkeletonView_full_width branch April 13, 2022 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants