Skip to content

Commit 9b20230

Browse files
committed
docs(ScreenRoot):更新文档
1 parent 1f9b413 commit 9b20230

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

example/examples/src/routes.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import {StackNavigationProp} from '@react-navigation/stack';
1+
import {
2+
StackNavigationProp,
3+
StackNavigationOptions,
4+
} from '@react-navigation/stack';
25

36
type ModalStackNavigation = StackNavigationProp<{}>;
47

@@ -14,6 +17,7 @@ export type Routes = {
1417
title: string;
1518
description: string;
1619
};
20+
options?: StackNavigationOptions;
1721
};
1822

1923
export const stackPageData: Routes[] = [
@@ -450,5 +454,8 @@ export const stackPageData: Routes[] = [
450454
title: 'ScreenRoot 屏幕头部导航',
451455
description: 'ScreenRoot',
452456
},
457+
options: {
458+
header: () => null,
459+
},
453460
},
454461
];

example/examples/src/routes/ScreenRoot/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default class ScreenRootDemo extends React.Component<ScreenRootProps> {
2323
return (
2424
<ScreenRoot
2525
title="ScreenRoot"
26+
screenBackgroundColor="#fff"
2627
headerRight={HeaderRight()}
2728
onBack={() => this.props.navigation.goBack()}
2829
/>

0 commit comments

Comments
 (0)