Skip to content

Commit 9873772

Browse files
authored
remove broken on-page sidebar from Running on Device page (#2105)
1 parent a0314cb commit 9873772

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

docs/running-on-device.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ If you used Expo CLI or Create React Native App to set up your project, you can
2020

2121
<block class="linux windows mac ios" />
2222

23-
## Running your app on iOS devices
23+
<h2>Running your app on iOS devices</h2>
2424

2525
<block class="linux windows mac android" />
2626

27-
## Running your app on Android devices
27+
<h2>Running your app on Android devices</h2>
2828

2929
<block class="linux windows mac ios android" />
3030

@@ -157,7 +157,7 @@ $ npx react-native run-android
157157

158158
<block class="mac ios" />
159159

160-
## Connecting to the development server
160+
<h2>Connecting to the development server</h2>
161161

162162
You can also iterate quickly on a device using the development server. You only have to be on the same Wi-Fi network as your computer. Shake your device to open the [Developer menu](debugging.md#accessing-the-in-app-developer-menu), then enable Live Reload. Your app will reload whenever your JavaScript code has changed.
163163

@@ -204,7 +204,7 @@ To still use xip.io behind your router:
204204

205205
<block class="mac windows linux android" />
206206

207-
## Connecting to the development server
207+
<h2>Connecting to the development server</h2>
208208

209209
You can also iterate quickly on a device by connecting to the development server running on your development machine. There are several ways of accomplishing this, depending on whether you have access to a USB cable or a Wi-Fi network.
210210

@@ -262,7 +262,7 @@ You can now enable Live reloading from the [Developer menu](debugging.md#accessi
262262

263263
<block class="mac ios" />
264264

265-
## Building your app for production
265+
<h2>Building your app for production</h2>
266266

267267
You have built a great app using React Native, and you are now itching to release it in the App Store. The process is the same as any other native iOS app, with some additional considerations to take into account.
268268

@@ -311,6 +311,6 @@ You can now build your app for release by tapping `⌘B` or selecting **Product*
311311
312312
<block class="mac windows linux android" />
313313

314-
## Building your app for production
314+
<h2>Building your app for production</h2>
315315

316316
You have built a great app using React Native, and you are now itching to release it in the Play Store. The process is the same as any other native Android app, with some additional considerations to take into account. Follow the guide for [generating a signed APK](signed-apk-android.md) to learn more.

website/versioned_docs/version-0.62/running-on-device.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ If you used Expo CLI or Create React Native App to set up your project, you can
2121

2222
<block class="linux windows mac ios" />
2323

24-
## Running your app on iOS devices
24+
<h2>Running your app on iOS devices</h2>
2525

2626
<block class="linux windows mac android" />
2727

28-
## Running your app on Android devices
28+
<h2>Running your app on Android devices</h2>
2929

3030
<block class="linux windows mac ios android" />
3131

@@ -74,7 +74,7 @@ If everything is set up correctly, your device will be listed as the build targe
7474

7575
Most Android devices can only install and run apps downloaded from Google Play, by default. You will need to enable USB Debugging on your device in order to install your app during development.
7676

77-
To enable USB debugging on your device, you will first need to enable the "Developer options" menu by going to **Settings****About phone** and then tapping the `Build number` row at the bottom seven times. You can then go back to **Settings****System****Developer options** to enable "USB debugging".
77+
To enable USB debugging on your device, you will first need to enable the "Developer options" menu by going to **Settings****About phone** **Software information** and then tapping the `Build number` row at the bottom seven times. You can then go back to **Settings****Developer options** to enable "USB debugging".
7878

7979
### 2. Plug in your device via USB
8080

@@ -158,7 +158,7 @@ $ npx react-native run-android
158158

159159
<block class="mac ios" />
160160

161-
## Connecting to the development server
161+
<h2>Connecting to the development server</h2>
162162

163163
You can also iterate quickly on a device using the development server. You only have to be on the same Wi-Fi network as your computer. Shake your device to open the [Developer menu](debugging.md#accessing-the-in-app-developer-menu), then enable Live Reload. Your app will reload whenever your JavaScript code has changed.
164164

@@ -205,7 +205,7 @@ To still use xip.io behind your router:
205205

206206
<block class="mac windows linux android" />
207207

208-
## Connecting to the development server
208+
<h2>Connecting to the development server</h2>
209209

210210
You can also iterate quickly on a device by connecting to the development server running on your development machine. There are several ways of accomplishing this, depending on whether you have access to a USB cable or a Wi-Fi network.
211211

@@ -263,7 +263,7 @@ You can now enable Live reloading from the [Developer menu](debugging.md#accessi
263263

264264
<block class="mac ios" />
265265

266-
## Building your app for production
266+
<h2>Building your app for production</h2>
267267

268268
You have built a great app using React Native, and you are now itching to release it in the App Store. The process is the same as any other native iOS app, with some additional considerations to take into account.
269269

@@ -291,9 +291,9 @@ As your App Bundle grows in size, you may start to see a blank screen flash betw
291291

292292
```objectivec
293293
// Place this code after "[self.window makeKeyAndVisible]" and before "return YES;"
294-
UIView* launchScreenView = [[[NSBundle mainBundle] loadNibNamed:@"LaunchScreen" owner:self options:nil] objectAtIndex:0];
295-
launchScreenView.frame = self.window.bounds;
296-
rootView.loadingView = launchScreenView;
294+
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil];
295+
UIViewController *vc = [sb instantiateInitialViewController];
296+
rootView.loadingView = vc.view;
297297
```
298298
299299
The static bundle is built every time you target a physical device, even in Debug. If you want to save time, turn off bundle generation in Debug by adding the following to your shell script in the Xcode Build Phase `Bundle React Native code and images`:
@@ -312,6 +312,6 @@ You can now build your app for release by tapping `⌘B` or selecting **Product*
312312
313313
<block class="mac windows linux android" />
314314

315-
## Building your app for production
315+
<h2>Building your app for production</h2>
316316

317317
You have built a great app using React Native, and you are now itching to release it in the Play Store. The process is the same as any other native Android app, with some additional considerations to take into account. Follow the guide for [generating a signed APK](signed-apk-android.md) to learn more.

0 commit comments

Comments
 (0)