Skip to content

Commit

Permalink
fix: Dynamic bottom sheet height (#53608)
Browse files Browse the repository at this point in the history
Stretching this content with flex appears to be necessary after
upgrading React Native or refactoring the bottom sheet height animation.

Refactor: 0411df1

Upgrade: c2957aa
  • Loading branch information
dcalhoun authored and Siobhan committed Aug 17, 2023
1 parent dcd3282 commit cc3b91a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/editor-help/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function EditorHelpTopics( { close, isVisible, onClose, showSupport } ) {
contentStyle={ styles.contentContainer }
testID="editor-help-modal"
>
<SafeAreaView>
<SafeAreaView style={ styles.safeAreaContainer }>
<BottomSheet.NavigationContainer
animate
main
Expand Down
5 changes: 5 additions & 0 deletions packages/editor/src/components/editor-help/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
color: $dark-primary;
}

.safeAreaContainer {
flex: 1;
}

.navigationContainer {
flex: 1;
overflow: hidden;
}

Expand Down

0 comments on commit cc3b91a

Please sign in to comment.