fix: rename contentContainerStyle to sceneContainerStyle

This commit is contained in:
satyajit.happy
2019-08-31 11:54:50 +02:00
parent 7747e51202
commit 9900a5c7ae
3 changed files with 7 additions and 7 deletions

View File

@@ -210,7 +210,7 @@ function createDrawerExample(options = {}) {
{
overlayColor: 'rgba(0,0,0,0)',
drawerType: 'back',
contentContainerStyle: {
sceneContainerStyle: {
shadowColor: '#000000',
shadowOpacity: 0.4,
shadowRadius: 8,

View File

@@ -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<typeof PanGestureHandler>;
@@ -483,7 +483,7 @@ export default class DrawerView extends React.PureComponent<Props> {
drawerPosition,
drawerType,
swipeEdgeWidth,
contentContainerStyle,
sceneContainerStyle,
drawerStyle,
overlayStyle,
onGestureRef,
@@ -533,7 +533,7 @@ export default class DrawerView extends React.PureComponent<Props> {
{
transform: [{ translateX: contentTranslateX }],
},
contentContainerStyle as any,
sceneContainerStyle as any,
]}
>
{renderSceneContent({ progress: this.progress })}

View File

@@ -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<Props, State> {
drawerType,
drawerBackgroundColor,
overlayColor,
contentContainerStyle,
sceneContainerStyle,
edgeWidth,
minSwipeDistance,
hideStatusBar,
@@ -229,7 +229,7 @@ export default class DrawerView extends React.PureComponent<Props, State> {
gestureHandlerProps={gestureHandlerProps}
drawerType={drawerType}
drawerPosition={this.props.navigationConfig.drawerPosition}
contentContainerStyle={contentContainerStyle}
sceneContainerStyle={sceneContainerStyle}
drawerStyle={{
backgroundColor: drawerBackgroundColor || 'white',
width: this.state.drawerWidth,