Skip to content

Commit 22f5afc

Browse files
bidahclaude
andcommitted
✨ feat(preview): add Expo Go download button and reorder QR code steps
Add a download button linking to expo.dev/go and reorder the instructions so the download step appears above the QR code for better user flow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 98c1028 commit 22f5afc

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

‎apps/web/components/preview-panel.tsx‎

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -951,11 +951,28 @@ Run 'npm install react-native-gesture-handler' or 'yarn add react-native-gesture
951951

952952
{/* QR Code Section - Prominent display */}
953953
{result?.ngrokUrl && (
954-
<div className="flex flex-col items-start space-y-4 max-w-xl relative -top-8">
954+
<div className="flex flex-col items-start space-y-2 max-w-xl relative -top-8">
955955
<div className="space-y-1">
956-
<h3 className="text-xl font-bold">Test on your phone</h3>
956+
<h3 className="text-xl font-bold">Test app on your phone</h3>
957957
</div>
958958

959+
<div className="space-y-3">
960+
<p className="text-base">
961+
<span className="font-semibold text-sm">1. Download the latest Expo Go app</span>
962+
</p>
963+
<a
964+
href="https://expo.dev/go"
965+
target="_blank"
966+
rel="noopener noreferrer"
967+
className="inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-xs font-medium text-primary-foreground hover:bg-primary/90 transition-colors"
968+
>
969+
Download Expo Go app
970+
</a>
971+
</div>
972+
973+
<p className="text-base pt-4">
974+
<span className="font-semibold text-sm">2. Scan QR Code</span>
975+
</p>
959976
<div className="flex items-center justify-center p-4 bg-white rounded-xl border border-gray-200">
960977
<Canvas
961978
text={result.ngrokUrl?.replace('https://', 'exp://')}
@@ -972,15 +989,6 @@ Run 'npm install react-native-gesture-handler' or 'yarn add react-native-gesture
972989
/>
973990
</div>
974991

975-
<div className="space-y-3">
976-
<p className="text-base">
977-
<span className="font-semibold text-sm">1. Download the latest Expo Go app</span>
978-
</p>
979-
<p className="text-base">
980-
<span className="font-semibold text-sm">2. Scan QR Code</span>
981-
</p>
982-
</div>
983-
984992
<div className="bg-muted/50 rounded-lg p-4 space-y-3 border border-muted max-w-[270px]">
985993
<p className="text-sm text-muted-foreground flex items-start gap-2">
986994
<svg className="w-5 h-5 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">

0 commit comments

Comments
 (0)