+ ${attendees.map((email, idx) => `
${idx + 1}. ${email}
`).join('')}
+
+
+
+ `;
+ // On iOS/android prints the given html. On web prints the HTML from the current page.
+ const { uri } = await Print.printToFileAsync({ html });
+ console.log('File has been saved to:', uri);
+ await shareAsync(uri, { UTI: '.pdf', mimeType: 'application/pdf' });
+ };
+
const handleBiometricAuth = async () => {
const hasHardware = await LocalAuthentication.hasHardwareAsync();
const isEnrolled = await LocalAuthentication.isEnrolledAsync();
@@ -381,8 +414,6 @@ const BookingDetails = () => {
style={{
marginHorizontal: 15,
borderRadius: 10,
-
-
}}
/>
@@ -471,6 +502,7 @@ const BookingDetails = () => {