Skip to content

Conversation

@joevilches
Copy link
Contributor

Summary:
While working on filters I noticed that my blurred image was cropped on the scrollview. Setting overflow: visible for contentContainerStyle did not change anything. Turns out we do not call setClipChildren(false) like we do with ReactViewGroup.

Changelog: [Internal]

Differential Revision: D54640466

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 13, 2024
…ilters (facebook#43357)

Summary:

This diff adds a class to get the needed RenderEffects to support CSS filters on Android. This diff does not add any of the plumbing for it to actually work, that comes in the next diff, but I figured this was complicated and isolated enough to be on its own.

Note that I did not add blur or drop shadow as those are a bit more involved and I plan on adding them later.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D54603892
Summary:
While working on filters I noticed that my blurred image was cropped on the scrollview. Setting `overflow: visible` for `contentContainerStyle` did not change anything. Turns out we do not call `setClipChildren(false)` like we do with [ReactViewGroup](https://www.internalfb.com/code/fbsource/[93517723586c]/xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java?lines=145). 

Changelog: [Internal]

Differential Revision: D54640466
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54640466

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54640466

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 14, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 50d587b.

j-piasecki added a commit to software-mansion/react-native-gesture-handler that referenced this pull request Jul 30, 2024
…3017)

## Description

In facebook/react-native#43464 `clipChildren`
started being set to false on scrollviews, which caused
`isViewClippingChildren` to return false. Because of this, gesture
handler would traverse the children of the scrollview even when touch
was out of bounds:


https://github.com/user-attachments/assets/6d108b55-6e06-4202-bc77-9d9dd2825456

This PR adds special cases for scroll views that have `overflow` set to
`visible` so that scrolling works on all of its children.

## Test plan

Test components sample on FabricExample app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants