Skip to content

Commit 9788859

Browse files
committed
docs(react): update your first app pages
1 parent 978d7e6 commit 9788859

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/react/your-first-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const Tab2: React.FC = () => {
228228
export default Tab2;
229229
```
230230

231-
Next, open `src/App.tsx`. Change the label to Photos and the `ellipse` icon to `images` for the middle tab button.
231+
Next, open `src/views/TabsPage.vue`. Change the label to "Photos" and the `ellipse` icon to `images` for the middle tab button.
232232

233233
```tsx
234234
import { Redirect, Route } from 'react-router-dom';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import { Capacitor } from '@capacitor/core';
3737

3838
## Platform-specific Logic
3939

40-
First, we’ll update the photo saving functionality to support mobile. In the `savePicture` method, check which platform the app is running on. If it’s “hybrid” (Capacitor, the native runtime), then read the photo file into base64 format using the `Filesystem`'s' `readFile()` method. Otherwise, use the same logic as before when running the app on the web.
40+
First, we’ll update the photo saving functionality to support mobile. In the `savePicture()` method, check which platform the app is running on. If it’s “hybrid” (Capacitor, the native runtime), then read the photo file into base64 format using the `Filesystem`'s' `readFile()` method. Otherwise, use the same logic as before when running the app on the web.
4141

42-
Update `savePicture` to look like the following:
42+
Update `savePicture()` to look like the following:
4343

4444
```ts
4545
// CHANGE: Update the `savePicture()` method.

docs/react/your-first-app/6-deploying-mobile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ionic cap sync
5656
To build an iOS app, you’ll need a Mac computer.
5757
:::
5858

59-
Capacitor iOS apps are configured and managed through Xcode (Apple’s iOS/Mac IDE), with dependencies managed by CocoaPods. Before running this app on an iOS device, there's a couple of steps to complete.
59+
Capacitor iOS apps are configured and managed through Xcode (Apple’s iOS/Mac IDE), with dependencies managed by [CocoaPods](https://cocoapods.org/). Before running this app on an iOS device, there's a couple of steps to complete.
6060

6161
First, run the Capacitor `open` command, which opens the native iOS project in Xcode:
6262

docs/react/your-first-app/7-live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function usePhotoGallery() {
5858
// Update photos array cache by overwriting the existing photo array
5959
Preferences.set({ key: PHOTO_STORAGE, value: JSON.stringify(newPhotos) });
6060

61-
// delete photo file from filesystem
61+
// Delete photo file from filesystem
6262
const filename = photo.filepath.substr(photo.filepath.lastIndexOf('/') + 1);
6363
await Filesystem.deleteFile({
6464
path: filename,

docs/react/your-first-app/8-distribute.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To dive into more details on the steps to deploy a live update, as well as addit
7272

7373
Next up is a native binary for your app build and deploy process. This is done via the [Ionic Package](https://ionic.io/docs/appflow/package/intro) service. First things first, you will need to create a [Package build](https://ionic.io/docs/appflow/package/builds). This can be done by clicking the `Start build` icon from the `Commits` tab or by clicking the `New build` button in the top right from the `Build > Builds` tab. Then you will select the proper commit for your build and fill in all of the several required fields and any optional fields that you want to specify. After filling in all of the information and the build begins, you can check out it's progress and review the logs if you encounter any errors.
7474

75-
Given a successful Package build, and iOS binary (`.ipa` or IPA) or and Android binary (`.apk` or APK) file becomes available to you. The file can subsequently be downloaded so you can install it on a device by clicking the file name in the `Artifacts` section in the right of the build detail page or clicking the `Download IPA/APK` icon on the build in the `Build > Builds` tab.
75+
Given a successful Package build, an iOS binary (`.ipa` or IPA) or/and an Android binary (`.apk` or APK) file becomes available to you. The file can subsequently be downloaded so you can install it on a device by clicking the file name in the `Artifacts` section in the right of the build detail page or clicking the `Download IPA/APK` icon on the build in the `Build > Builds` tab.
7676

7777
Further information regarding building native binaries can be found inside of the [Build a Native Binary](https://ionic.io/docs/appflow/quickstart/package) section inside the Appflow docs.
7878

@@ -102,8 +102,8 @@ For access to the ability to create a Native Configuration, you will need to be
102102

103103
## What’s Next?
104104

105-
Congratulations! You developed a complete cross-platform Photo Gallery app that runs on the web, iOS, and Android. Not only that, you have also then built the app and deployed it to you users devices!
105+
Congratulations! You developed a complete cross-platform Photo Gallery app that runs on the web, iOS, and Android. Not only that, you have also then built the app and deployed it to your users' devices!
106106

107-
There are many paths to follow from here. Try adding another [Ionic UI component](https://ionicframework.com/docs/components) to the app, or more [native functionality](https://capacitorjs.com/docs/apis). The sky’s the limit. Once you have added another feature run the build and deploy process again through Appflow to get it out to your users.
107+
There are many paths to follow from here. Try adding another [Ionic UI component](../../components.md) to the app, or more [native functionality](https://capacitorjs.com/docs/apis). The sky’s the limit. Once you have added another feature, run the build and deploy process again through Appflow to get it out to your users.
108108

109109
Happy app building! 💙

0 commit comments

Comments
 (0)