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' ;
25
36type ModalStackNavigation = StackNavigationProp < { } > ;
47
@@ -14,6 +17,7 @@ export type Routes = {
1417 title : string ;
1518 description : string ;
1619 } ;
20+ options ?: StackNavigationOptions ;
1721} ;
1822
1923export 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] ;
Original file line number Diff line number Diff 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 />
You can’t perform that action at this time.
0 commit comments