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)', overlayColor: 'rgba(0,0,0,0)',
drawerType: 'back', drawerType: 'back',
contentContainerStyle: { sceneContainerStyle: {
shadowColor: '#000000', shadowColor: '#000000',
shadowOpacity: 0.4, shadowOpacity: 0.4,
shadowRadius: 8, shadowRadius: 8,

View File

@@ -87,7 +87,7 @@ type Props = {
statusBarAnimation: 'slide' | 'none' | 'fade'; statusBarAnimation: 'slide' | 'none' | 'fade';
overlayStyle?: ViewStyle; overlayStyle?: ViewStyle;
drawerStyle?: ViewStyle; drawerStyle?: ViewStyle;
contentContainerStyle?: ViewStyle; sceneContainerStyle?: ViewStyle;
renderDrawerContent: Renderer; renderDrawerContent: Renderer;
renderSceneContent: Renderer; renderSceneContent: Renderer;
gestureHandlerProps?: React.ComponentProps<typeof PanGestureHandler>; gestureHandlerProps?: React.ComponentProps<typeof PanGestureHandler>;
@@ -483,7 +483,7 @@ export default class DrawerView extends React.PureComponent<Props> {
drawerPosition, drawerPosition,
drawerType, drawerType,
swipeEdgeWidth, swipeEdgeWidth,
contentContainerStyle, sceneContainerStyle,
drawerStyle, drawerStyle,
overlayStyle, overlayStyle,
onGestureRef, onGestureRef,
@@ -533,7 +533,7 @@ export default class DrawerView extends React.PureComponent<Props> {
{ {
transform: [{ translateX: contentTranslateX }], transform: [{ translateX: contentTranslateX }],
}, },
contentContainerStyle as any, sceneContainerStyle as any,
]} ]}
> >
{renderSceneContent({ progress: this.progress })} {renderSceneContent({ progress: this.progress })}

View File

@@ -23,7 +23,7 @@ type DrawerOptions = {
statusBarAnimation: 'slide' | 'none' | 'fade'; statusBarAnimation: 'slide' | 'none' | 'fade';
onDrawerClose?: () => void; onDrawerClose?: () => void;
onDrawerOpen?: () => void; onDrawerOpen?: () => void;
contentContainerStyle?: ViewStyle; sceneContainerStyle?: ViewStyle;
edgeWidth: number; edgeWidth: number;
hideStatusBar?: boolean; hideStatusBar?: boolean;
style?: ViewStyle; style?: ViewStyle;
@@ -198,7 +198,7 @@ export default class DrawerView extends React.PureComponent<Props, State> {
drawerType, drawerType,
drawerBackgroundColor, drawerBackgroundColor,
overlayColor, overlayColor,
contentContainerStyle, sceneContainerStyle,
edgeWidth, edgeWidth,
minSwipeDistance, minSwipeDistance,
hideStatusBar, hideStatusBar,
@@ -229,7 +229,7 @@ export default class DrawerView extends React.PureComponent<Props, State> {
gestureHandlerProps={gestureHandlerProps} gestureHandlerProps={gestureHandlerProps}
drawerType={drawerType} drawerType={drawerType}
drawerPosition={this.props.navigationConfig.drawerPosition} drawerPosition={this.props.navigationConfig.drawerPosition}
contentContainerStyle={contentContainerStyle} sceneContainerStyle={sceneContainerStyle}
drawerStyle={{ drawerStyle={{
backgroundColor: drawerBackgroundColor || 'white', backgroundColor: drawerBackgroundColor || 'white',
width: this.state.drawerWidth, width: this.state.drawerWidth,