@@ -6,10 +6,7 @@ import React, { useState } from 'react';
66import { ActivityIndicator , Button , ScrollView , StyleSheet , Switch , Text , TextInput , View } from 'react-native' ;
77import { Picker } from '@react-native-picker/picker' ;
88
9- import {
10- generateMockDocument ,
11- signatureAlgorithmToStrictSignatureAlgorithm ,
12- } from '@selfxyz/mobile-sdk-alpha' ;
9+ import { generateMockDocument , signatureAlgorithmToStrictSignatureAlgorithm } from '@selfxyz/mobile-sdk-alpha' ;
1310// eslint-disable-next-line @typescript-eslint/no-var-requires
1411const { countryCodes } = require ( '@selfxyz/common/dist/cjs/src/constants/constants.cjs' ) ;
1512
@@ -86,21 +83,21 @@ export default function GenerateMock({ onGenerate, onNavigate, onBack }: Props)
8683 < Switch value = { isInOfacList } onValueChange = { setIsInOfacList } />
8784 </ View >
8885 < Text style = { styles . label } > Algorithm</ Text >
89- < Picker selectedValue = { algorithm } onValueChange = { itemValue => setAlgorithm ( itemValue ) } >
86+ < Picker selectedValue = { algorithm } onValueChange = { ( itemValue : string ) => setAlgorithm ( itemValue ) } >
9087 { algorithmOptions . map ( alg => (
9188 < Picker . Item label = { alg } value = { alg } key = { alg } />
9289 ) ) }
9390 </ Picker >
9491 < Text style = { styles . label } > Country</ Text >
95- < Picker selectedValue = { country } onValueChange = { itemValue => setCountry ( itemValue ) } >
92+ < Picker selectedValue = { country } onValueChange = { ( itemValue : string ) => setCountry ( itemValue ) } >
9693 { countryOptions . map ( code => (
9794 < Picker . Item label = { `${ code } - ${ countryCodes [ code as keyof typeof countryCodes ] } ` } value = { code } key = { code } />
9895 ) ) }
9996 </ Picker >
10097 < Text style = { styles . label } > Document Type</ Text >
10198 < Picker
10299 selectedValue = { documentType }
103- onValueChange = { itemValue => setDocumentType ( itemValue as ( typeof documentTypeOptions ) [ number ] ) }
100+ onValueChange = { ( itemValue : string ) => setDocumentType ( itemValue as ( typeof documentTypeOptions ) [ number ] ) }
104101 >
105102 { documentTypeOptions . map ( dt => (
106103 < Picker . Item label = { dt } value = { dt } key = { dt } />
0 commit comments