mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-07 22:43:48 +08:00
fix: rename contentContainerStyle to sceneContainerStyle
This commit is contained in:
@@ -210,7 +210,7 @@ function createDrawerExample(options = {}) {
|
||||
{
|
||||
overlayColor: 'rgba(0,0,0,0)',
|
||||
drawerType: 'back',
|
||||
contentContainerStyle: {
|
||||
sceneContainerStyle: {
|
||||
shadowColor: '#000000',
|
||||
shadowOpacity: 0.4,
|
||||
shadowRadius: 8,
|
||||
|
||||
@@ -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 })}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user