@@ -60,6 +60,7 @@ const PassportNFCScanScreen: React.FC<PassportNFCScanScreenProps> = ({}) => {
6060 const [ isNfcSupported , setIsNfcSupported ] = useState ( true ) ;
6161 const [ isNfcEnabled , setIsNfcEnabled ] = useState ( true ) ;
6262 const [ isNfcSheetOpen , setIsNfcSheetOpen ] = useState ( false ) ;
63+ const [ dialogMessage , setDialogMessage ] = useState ( '' ) ;
6364
6465 const animationRef = useRef < LottieView > ( null ) ;
6566
@@ -103,6 +104,7 @@ const PassportNFCScanScreen: React.FC<PassportNFCScanScreenProps> = ({}) => {
103104 const isEnabled = await NfcManager . isEnabled ( ) ;
104105 if ( ! isEnabled ) {
105106 setIsNfcEnabled ( false ) ;
107+ setDialogMessage ( 'NFC is not enabled. Please enable it in settings.' ) ;
106108 }
107109 setIsNfcSupported ( true ) ;
108110 } else {
@@ -327,16 +329,26 @@ const PassportNFCScanScreen: React.FC<PassportNFCScanScreenProps> = ({}) => {
327329 />
328330 </ XStack >
329331 </ GestureDetector >
330- < Title style = { styles . title } mt = "$2" >
331- Find the RFID chip in your ID
332- </ Title >
333- < BodyText style = { styles . bodyText } mt = "$2" mb = "$2" >
334- Place your phone against the chip and keep it still until the
335- sensor reads it.
336- </ BodyText >
337- < BodyText style = { styles . disclaimer } mt = "$2" >
338- SELF DOES NOT STORE THIS INFORMATION.
339- </ BodyText >
332+ { isNfcEnabled ? (
333+ < >
334+ < Title style = { styles . title } mt = "$2" >
335+ Find the RFID chip in your ID
336+ </ Title >
337+ < BodyText style = { styles . bodyText } mt = "$2" mb = "$2" >
338+ Place your phone against the chip and keep it still until
339+ the sensor reads it.
340+ </ BodyText >
341+ < BodyText style = { styles . disclaimer } mt = "$2" >
342+ SELF DOES NOT STORE THIS INFORMATION.
343+ </ BodyText >
344+ </ >
345+ ) : (
346+ < >
347+ < BodyText style = { styles . disclaimer } mt = "$2" >
348+ { dialogMessage }
349+ </ BodyText >
350+ </ >
351+ ) }
340352 </ TextsContainer >
341353 < ButtonsContainer >
342354 < PrimaryButton
0 commit comments