Skip to content

Commit

Permalink
fix: added a fixed position for the container on web
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed May 21, 2022
1 parent 7f0b1cf commit ce5115a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/bottomSheetContainer/styles.web.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { StyleSheet } from 'react-native';

export const styles = StyleSheet.create({
container: {
// @ts-ignore
position: 'fixed',
left: 0,
right: 0,
bottom: 0,
top: 0,
},
});

1 comment on commit ce5115a

@Wuyialex
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed property prevents the bottom sheet from being determined by the width of that view when it depends on a parent viewport. Is there any reason to include this 'fixed' attribute?

Please sign in to comment.