Skip to content

Commit c574779

Browse files
NozarnothetaPC
andauthored
docs(your-first-app): use correct type on "Adding Mobile" page (#3533)
Co-authored-by: Maria Hutt <[email protected]>
1 parent 4c70801 commit c574779

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/react/your-first-app/5-adding-mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, we’ll update the photo saving functionality to support mobile. In the `
1414

1515
```tsx
1616
const savePicture = async (photo: Photo, fileName: string): Promise<UserPhoto> => {
17-
let base64Data: string;
17+
let base64Data: string | Blob;
1818
// "hybrid" will detect Cordova or Capacitor;
1919
if (isPlatform('hybrid')) {
2020
const file = await Filesystem.readFile({

docs/vue/your-first-app/5-adding-mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it
1717

1818
```tsx
1919
const savePicture = async (photo: Photo, fileName: string): Promise<UserPhoto> => {
20-
let base64Data: string;
20+
let base64Data: string | Blob;
2121
// "hybrid" will detect mobile - iOS or Android
2222
if (isPlatform('hybrid')) {
2323
const file = await Filesystem.readFile({

versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, we’ll update the photo saving functionality to support mobile. In the `
1414

1515
```tsx
1616
const savePicture = async (photo: Photo, fileName: string): Promise<UserPhoto> => {
17-
let base64Data: string;
17+
let base64Data: string | Blob;
1818
// "hybrid" will detect Cordova or Capacitor;
1919
if (isPlatform('hybrid')) {
2020
const file = await Filesystem.readFile({

versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it
1717

1818
```tsx
1919
const savePicture = async (photo: Photo, fileName: string): Promise<UserPhoto> => {
20-
let base64Data: string;
20+
let base64Data: string | Blob;
2121
// "hybrid" will detect mobile - iOS or Android
2222
if (isPlatform('hybrid')) {
2323
const file = await Filesystem.readFile({

0 commit comments

Comments
 (0)