Improve dialogs issue (#2941)

* Fix collapse, update backdrop color

* Remove test prop

* Remove debug code
This commit is contained in:
Eric Bailey
2024-02-20 10:04:07 -06:00
committed by GitHub
parent b52a742925
commit 8a169dc6a1
2 changed files with 41 additions and 6 deletions
+3 -1
View File
@@ -90,6 +90,7 @@ export function Outer({
keyboardBlurBehavior="restore"
topInset={insets.top}
{...sheetOptions}
snapPoints={sheetOptions.snapPoints || ['100%']}
ref={sheet}
index={openIndex}
backgroundStyle={{backgroundColor: 'transparent'}}
@@ -99,6 +100,7 @@ export function Outer({
appearsOnIndex={0}
disappearsOnIndex={-1}
{...props}
style={[flatten(props.style), t.atoms.bg_contrast_300]}
/>
)}
handleIndicatorStyle={{backgroundColor: t.palette.primary_500}}
@@ -117,7 +119,7 @@ export function Outer({
},
]}
/>
{hasSnapPoints ? children : <View>{children}</View>}
{children}
</Context.Provider>
</BottomSheet>
</Portal>