diff --git a/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx b/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx index b30a17c45a..5421074aa7 100644 --- a/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx +++ b/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx @@ -197,6 +197,11 @@ export interface DrawerLayoutProps { */ drawerContainerStyle?: StyleProp; + /** + * Style wrapping the main component. + */ + mainContainerStyle?: StyleProp; + /** * Enables two-finger gestures on supported devices, for example iPads with * trackpads. If not enabled the gesture will require click + drag, with @@ -282,6 +287,7 @@ const DrawerLayout = forwardRef( drawerType = defaultProps.drawerType, drawerBackgroundColor, drawerContainerStyle, + mainContainerStyle, contentContainerStyle, minSwipeDistance = defaultProps.minSwipeDistance, edgeWidth = defaultProps.edgeWidth, @@ -668,7 +674,7 @@ const DrawerLayout = forwardRef( gesture={panGesture} userSelect={userSelect} enableContextMenu={enableContextMenu}> - +