File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ import {
1717class Resultat extends Component {
1818 constructor ( props ) {
1919 super ( props ) ;
20- this . state = { last_name : "unknown" , first_name : "unknown ", recto_uri : "" } ;
20+ this . state = { welcome_label : "Hello ! " , recto_uri : "" } ;
2121 }
2222
2323 response_server ( results ) {
2424 this . setState ( {
25- last_name : results . mapDocument . IDENTITY_DOCUMENT . fields . LAST_NAME ,
26- first_name : results . mapDocument . IDENTITY_DOCUMENT . fields . FIRST_NAMES ,
25+ welcome_label : "Hello, " + results . mapDocument . IDENTITY_DOCUMENT . fields . FIRST_NAMES + " " + results . mapDocument . IDENTITY_DOCUMENT . fields . LAST_NAMES + " !" ,
2726 recto_uri : results [ "mapImageSource" ] [ "IMAGES_RECTO" ] [ "imageUri" ]
2827 } ) ;
28+ console . log ( "response_server() -> " + JSON . stringify ( results . mapDocument . IDENTITY_DOCUMENT . fields ) ) ;
2929 }
3030
3131 async requestPermissions ( ) {
@@ -73,7 +73,7 @@ class Resultat extends Component {
7373 }
7474 return (
7575 < View style = { styles . container } >
76- < Text style = { styles . welcome } > Hello, { this . state . last_name } { this . state . first_name } ! </ Text >
76+ < Text style = { styles . welcome } > { this . state . welcome_label } </ Text >
7777 < Button onPress = { ( ) => { this . capture ( ) ; } } title = "Capture" />
7878 </ View >
7979 ) ;
You can’t perform that action at this time.
0 commit comments