-
-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
Great library - thanks for maintaining this!
Here's code that doesn't work (for me) as expected:
<ActionSheet contentContainerStyle={{flex: 1}}>
<View style={{flex: 1}}>
/* A bunch of vertically-expanding stuff */
</View>
</ActionSheet>
This seems to come down to how props.children
is wrapped with flexShrink: 1
in the library here. When I change that line instead to flex: 1
, I get the desired behavior... though I'm sure the flexShrink: 1
was put there for a reason.
What is the right way to create an ActionSheet that contains, say, a big FlatList, where you want the ActionSheet to cap out at snap === 100
, but always grow to as much vertical space as is allowed?
Metadata
Metadata
Assignees
Labels
No labels