diff --git a/docs/react/your-first-app/5-adding-mobile.md b/docs/react/your-first-app/5-adding-mobile.md index eef40b7a333..fa1799da9d1 100644 --- a/docs/react/your-first-app/5-adding-mobile.md +++ b/docs/react/your-first-app/5-adding-mobile.md @@ -14,7 +14,7 @@ First, we’ll update the photo saving functionality to support mobile. In the ` ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect Cordova or Capacitor; if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ diff --git a/docs/vue/your-first-app/5-adding-mobile.md b/docs/vue/your-first-app/5-adding-mobile.md index 4253e239d94..61a1a51191d 100644 --- a/docs/vue/your-first-app/5-adding-mobile.md +++ b/docs/vue/your-first-app/5-adding-mobile.md @@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect mobile - iOS or Android if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ diff --git a/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md b/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md index eef40b7a333..fa1799da9d1 100644 --- a/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md @@ -14,7 +14,7 @@ First, we’ll update the photo saving functionality to support mobile. In the ` ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect Cordova or Capacitor; if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ diff --git a/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md b/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md index 4253e239d94..61a1a51191d 100644 --- a/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md @@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect mobile - iOS or Android if (isPlatform('hybrid')) { const file = await Filesystem.readFile({