Skip to content

Commit bcd3025

Browse files
committed
fix types
1 parent 3058043 commit bcd3025

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app/src/navigation/document.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

app/src/navigation/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

app/src/screens/document/DocumentNFCMethodSelectionScreen.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 (

0 commit comments

Comments
 (0)