Skip to content

Commit

Permalink
Hid using display for ios fabric
Browse files Browse the repository at this point in the history
The north button still wasn't pressable using height on fabric on ios. Changing to display works on old and new arch
  • Loading branch information
grahammendick committed Nov 10, 2023
1 parent c96c899 commit c9ac65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NavigationReactNative/src/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class BottomSheet extends React.Component<any, any> {
expandedOffset != null ? { top: expandedOffset } : null,
expandedHeight == null && expandedOffset == null ? { top: 0 } : null,
Platform.OS === 'ios' ? { height: undefined, top: undefined } : null,
this.state.selectedDetent === 'hidden' ? { height: 0 } : null,
{ display: this.state.selectedDetent !== 'hidden' ? 'flex' : 'none' },
]}
>
{children}
Expand Down

0 comments on commit c9ac65c

Please sign in to comment.