fix: don't wrap content with BottomSheetView when enableDynamicSizing is true
#26
+1
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey,
This PR is to get the discussion started on the following problem:
We're using
react-navigation-bottom-sheetwithenableDynamicSizingset totruebut want to useBottomSheetScrollView(or other Gorhom components:BottomSheetFlatList,BottomSheetSectionList, etc)within the screen to get proper sizing and all features that go with it (scroll down to dismiss, etc).
Currently with the latest version of
react-navigation-bottom-sheet(0.3.2), this causes sizing issues and blank renders.I tracked it down to having both
BottomSheetView(in this lib) andBottomSheetScrollView(in our own screen) nested.They somehow conflict.
As a workaround I've patched it to remove the
BottomSheetViewwrapping: https://github.com/valora-inc/wallet/blob/bbd0e39dcc1420a704fa866113994e9a20c3bfa4/patches/%40th3rdwave%2Breact-navigation-bottom-sheet%2B0.3.2.patchThis works pretty well for us, but we must ensure the screens use one of the Gorhom components.
I'm not sure about the "right" solution to avoid this patch. Here are possible options:
childrento see if one of them is a Gohrom componentBottomSheetViewLooking forward to finding a solution that will work for all users of this lib.