Skip to content

Commit b5966fc

Browse files
authored
Add information about nested stack and headerShown being unsupported (#1427)
1 parent fa5d8dd commit b5966fc

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ On iOS, `flex: 1` with `showAllowedDetents: 'fitToContents'` works properly but
546546
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.
547547

548548
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).
549+
550+
On Android, nested stack and `headerShown` prop are not currently supported for screens with `presentation: 'formSheet'`.
551+
549552
:::
550553

551554
#### `sheetAllowedDetents`

0 commit comments

Comments
 (0)