Skip to content

Commit 65e8ff1

Browse files
committed
add information about nested stack and headerShown being unsupported
1 parent 60212e4 commit 65e8ff1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

versioned_docs/version-7.x/native-stack-navigator.md

+3
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,9 @@ On iOS, `flex: 1` with `showAllowedDetents: 'fitToContents'` works properly but
10711071
If you don't use `flex: 1` but the content's height is less than max screen height, the rest of the sheet might become translucent or use the default theme background color (you can see this happening on the screenshots in the descrption of [this PR](https://github.com/software-mansion/react-native-screens/pull/2462)). To match the sheet to the background of your content, set `backgroundColor` in the `contentStyle` prop of the given screen.
10721072

10731073
On Android, there are also some problems with getting nested ScrollViews to work properly. The solution is to set `nestedScrollEnabled` on the `ScrollView`, but this does not work if the content's height is less than the `ScrollView`'s height. Please see [this PR](https://github.com/facebook/react-native/pull/44099) for details and suggested [workaround](https://github.com/facebook/react-native/pull/44099#issuecomment-2058469661).
1074+
1075+
On Android, nested stack and `headerShown` prop are not currently supported for screens with `presentation: 'formSheet'`.
1076+
10741077
:::
10751078

10761079
#### `sheetAllowedDetents`

0 commit comments

Comments
 (0)