mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 12:25:21 +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)',
|
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,
|
||||||
|
|||||||
@@ -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 })}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user