diff --git a/packages/drawer/example/src/ParallaxDrawer.js b/packages/drawer/example/src/ParallaxDrawer.js index f25ad041..ae7bfcf4 100644 --- a/packages/drawer/example/src/ParallaxDrawer.js +++ b/packages/drawer/example/src/ParallaxDrawer.js @@ -210,7 +210,7 @@ function createDrawerExample(options = {}) { { overlayColor: 'rgba(0,0,0,0)', drawerType: 'back', - contentContainerStyle: { + sceneContainerStyle: { shadowColor: '#000000', shadowOpacity: 0.4, shadowRadius: 8, diff --git a/packages/drawer/src/views/Drawer.tsx b/packages/drawer/src/views/Drawer.tsx index 20a335e4..c6a18326 100644 --- a/packages/drawer/src/views/Drawer.tsx +++ b/packages/drawer/src/views/Drawer.tsx @@ -87,7 +87,7 @@ type Props = { statusBarAnimation: 'slide' | 'none' | 'fade'; overlayStyle?: ViewStyle; drawerStyle?: ViewStyle; - contentContainerStyle?: ViewStyle; + sceneContainerStyle?: ViewStyle; renderDrawerContent: Renderer; renderSceneContent: Renderer; gestureHandlerProps?: React.ComponentProps; @@ -483,7 +483,7 @@ export default class DrawerView extends React.PureComponent { drawerPosition, drawerType, swipeEdgeWidth, - contentContainerStyle, + sceneContainerStyle, drawerStyle, overlayStyle, onGestureRef, @@ -533,7 +533,7 @@ export default class DrawerView extends React.PureComponent { { transform: [{ translateX: contentTranslateX }], }, - contentContainerStyle as any, + sceneContainerStyle as any, ]} > {renderSceneContent({ progress: this.progress })} diff --git a/packages/drawer/src/views/DrawerView.tsx b/packages/drawer/src/views/DrawerView.tsx index 266962c9..cd547402 100644 --- a/packages/drawer/src/views/DrawerView.tsx +++ b/packages/drawer/src/views/DrawerView.tsx @@ -23,7 +23,7 @@ type DrawerOptions = { statusBarAnimation: 'slide' | 'none' | 'fade'; onDrawerClose?: () => void; onDrawerOpen?: () => void; - contentContainerStyle?: ViewStyle; + sceneContainerStyle?: ViewStyle; edgeWidth: number; hideStatusBar?: boolean; style?: ViewStyle; @@ -198,7 +198,7 @@ export default class DrawerView extends React.PureComponent { drawerType, drawerBackgroundColor, overlayColor, - contentContainerStyle, + sceneContainerStyle, edgeWidth, minSwipeDistance, hideStatusBar, @@ -229,7 +229,7 @@ export default class DrawerView extends React.PureComponent { gestureHandlerProps={gestureHandlerProps} drawerType={drawerType} drawerPosition={this.props.navigationConfig.drawerPosition} - contentContainerStyle={contentContainerStyle} + sceneContainerStyle={sceneContainerStyle} drawerStyle={{ backgroundColor: drawerBackgroundColor || 'white', width: this.state.drawerWidth,