-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Ability to pass scroll component implementation #69
Comments
I actually added a renderScrollComponent prop in the latest version but forgot to add it to the documentation. I did some quick tests and it seemed to work, but I'm not sure if it's correct to support bottom sheet. What do you think? Do you want to try it and see if it works? |
Just tried to use that prop with renderScrollComponent={(props) => <BottomSheetScrollView {...props} />} Thank you! Another question regarding that. I'm now getting a warning Any ideas how could i force to remeasure it? |
Made a repro repository with the versions i use: The issue exists on both iOS and Android. 2025-01-21.16.17.02.mov |
Just a heads up @terrysahaidak and possibly others in the future: Passing renderScrollComponent={(props) => <BottomSheetScrollView {...props} />} Instead, prefer extracting to a custom component: const CustomScrollView = (props: ScrollViewProps) => {
return <ScrollView {...props} />;
}; |
In order to support bottom sheet libraries, we need to pass its scroll component. I saw this library implements animated and reanimated versions, but still would be cool to use it with
@gorhom/bottom-sheet
and other custom things that absolutely need access to the ScrollView.The text was updated successfully, but these errors were encountered: