File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- import { StackNavigationProp } from '@react-navigation/stack' ;
1
+ import {
2
+ StackNavigationProp ,
3
+ StackNavigationOptions ,
4
+ } from '@react-navigation/stack' ;
2
5
3
6
type ModalStackNavigation = StackNavigationProp < { } > ;
4
7
@@ -14,6 +17,7 @@ export type Routes = {
14
17
title : string ;
15
18
description : string ;
16
19
} ;
20
+ options ?: StackNavigationOptions ;
17
21
} ;
18
22
19
23
export const stackPageData : Routes [ ] = [
@@ -450,5 +454,8 @@ export const stackPageData: Routes[] = [
450
454
title : 'ScreenRoot 屏幕头部导航' ,
451
455
description : 'ScreenRoot' ,
452
456
} ,
457
+ options : {
458
+ header : ( ) => null ,
459
+ } ,
453
460
} ,
454
461
] ;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export default class ScreenRootDemo extends React.Component<ScreenRootProps> {
23
23
return (
24
24
< ScreenRoot
25
25
title = "ScreenRoot"
26
+ screenBackgroundColor = "#fff"
26
27
headerRight = { HeaderRight ( ) }
27
28
onBack = { ( ) => this . props . navigation . goBack ( ) }
28
29
/>
You can’t perform that action at this time.
0 commit comments