@@ -27,7 +27,6 @@ import DialogHeader from './DialogHeader';
27
27
import { DialogProps , DialogDirections , DialogDirectionsEnum , DialogHeaderProps } from './types' ;
28
28
export { DialogProps , DialogDirections , DialogDirectionsEnum , DialogHeaderProps } ;
29
29
30
- const DEFAULT_OVERLAY_BACKGROUND_COLOR = Colors . rgba ( Colors . $backgroundInverted , 0.3 ) ;
31
30
const THRESHOLD_VELOCITY = 750 ;
32
31
33
32
export interface DialogStatics {
@@ -55,7 +54,7 @@ const Dialog = (props: DialogProps, ref: ForwardedRef<DialogImperativeMethods>)
55
54
testID,
56
55
children
57
56
} = props ;
58
- const { overlayBackgroundColor = DEFAULT_OVERLAY_BACKGROUND_COLOR , ...otherModalProps } = modalProps ;
57
+ const { overlayBackgroundColor = Colors . rgba ( Colors . $backgroundInverted , 0.3 ) , ...otherModalProps } = modalProps ;
59
58
60
59
const visibility = useSharedValue ( 0 ) ; // value between 0 (closed) and 1 (open)
61
60
const initialTranslation = useSharedValue ( 0 ) ;
@@ -140,6 +139,7 @@ const Dialog = (props: DialogProps, ref: ForwardedRef<DialogImperativeMethods>)
140
139
const style = useMemo ( ( ) => {
141
140
return [
142
141
styles . defaultDialogStyle ,
142
+ { backgroundColor : Colors . $backgroundDefault } ,
143
143
containerStyle ,
144
144
animatedStyle ,
145
145
width ? { width} : undefined ,
@@ -248,7 +248,6 @@ export default asBaseComponent<DialogProps, DialogStatics>(_Dialog);
248
248
const styles = StyleSheet . create ( {
249
249
defaultDialogStyle : {
250
250
marginBottom : Spacings . s5 ,
251
- backgroundColor : Colors . $backgroundDefault ,
252
251
maxHeight : '60%' ,
253
252
width : 250 ,
254
253
borderRadius : BorderRadiuses . br20 ,
0 commit comments