Skip to content

GridView - fix after gridListIItem change (#3001) #3215

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

Closed
wants to merge 1 commit into from

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

GridView - fix after gridListIItem change (#3001)

Changelog

GridView - fix after gridListIItem change (#3001)

Additional info

None

Copy link
Contributor

@adids1221 adids1221 left a comment

Choose a reason for hiding this comment

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

Left a small comment, the issue coming from style override.

{imageProps && <Image style={itemSize} {...imageProps} customOverlayContent={children}/>}
{imageProps && (
<View style={[{borderRadius: imageProps?.borderRadius}, itemSize]}>
<Image {...imageProps} style={[itemSize, imageProps?.style]}/>
Copy link
Contributor

Choose a reason for hiding this comment

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

I found that the issue is coming from the style override.

style={itemSize} {...imageProps}

So when the user pass some style via imageProps the size getting override.

I think the better solution will be to fix the style override.

{imageProps && <Image {...imageProps} style={[itemSize, imageProps?.style]} customOverlayContent={children}/>}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So create a PR, if it works I'll close this one

Copy link
Contributor

Choose a reason for hiding this comment

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

@adids1221 adids1221 assigned M-i-k-e-l and unassigned adids1221 Aug 20, 2024
@M-i-k-e-l M-i-k-e-l assigned adids1221 and unassigned M-i-k-e-l Aug 20, 2024
@M-i-k-e-l M-i-k-e-l requested a review from adids1221 August 20, 2024 09:03
@M-i-k-e-l M-i-k-e-l closed this Aug 21, 2024
@M-i-k-e-l M-i-k-e-l deleted the fix/grid-view-after-grid-list-item-change branch August 21, 2024 12:41
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