File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ const documentScreens = {
3737 headerShown : false ,
3838 animation : 'slide_from_bottom' ,
3939 } as NativeStackNavigationOptions ,
40- initialParams : {
41- passportNumber : '' ,
42- dateOfBirth : '' ,
43- dateOfExpiry : '' ,
44- } ,
4540 } ,
4641 DocumentNFCTrouble : {
4742 screen : DocumentNFCTroubleScreen ,
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ declare global {
5757 namespace ReactNavigation {
5858 // Allow React Navigation helpers to infer route params from our stack
5959 // Use interface merging to avoid duplicate identifier errors
60+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
6061 interface RootParamList extends RootStackParamList { }
6162 }
6263}
Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ const DocumentNFCMethodSelectionScreen: React.FC = () => {
133133 if ( selectedMethod === 'can' ) {
134134 params . canNumber = canValue ;
135135 }
136- navigation . navigate ( 'DocumentNFCScan' , params as any ) ;
136+ // Type assertion needed because static navigation doesn't infer optional params
137+ navigation . navigate ( 'DocumentNFCScan' , params as never ) ;
137138 } ;
138139
139140 return (
You can’t perform that action at this time.
0 commit comments