Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ export interface DrawerLayoutProps {
*/
drawerContainerStyle?: StyleProp<ViewStyle>;

/**
* Style wrapping the main component.
*/
mainContainerStyle?: StyleProp<ViewStyle>;

/**
* Enables two-finger gestures on supported devices, for example iPads with
* trackpads. If not enabled the gesture will require click + drag, with
Expand Down Expand Up @@ -282,6 +287,7 @@ const DrawerLayout = forwardRef<DrawerLayoutMethods, DrawerLayoutProps>(
drawerType = defaultProps.drawerType,
drawerBackgroundColor,
drawerContainerStyle,
mainContainerStyle,
contentContainerStyle,
minSwipeDistance = defaultProps.minSwipeDistance,
edgeWidth = defaultProps.edgeWidth,
Expand Down Expand Up @@ -668,7 +674,7 @@ const DrawerLayout = forwardRef<DrawerLayoutMethods, DrawerLayoutProps>(
gesture={panGesture}
userSelect={userSelect}
enableContextMenu={enableContextMenu}>
<Animated.View style={styles.main} onLayout={handleContainerLayout}>
<Animated.View style={[styles.main, mainContainerStyle]} onLayout={handleContainerLayout}>
<GestureDetector gesture={overlayDismissGesture}>
<Animated.View
style={[
Expand Down