Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 120d609

Browse files
committed
update docs
1 parent 66d999e commit 120d609

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ public class MainActivity extends ReactActivity {
343343
}
344344
```
345345

346-
#### Background React Instances ####
346+
#### Background React Instances
347347

348-
**This section is only necessary if you're *explicitly* launching a React Native instance without an `Activity` (for example, from within a native push notification receiver). For these situations, CodePush must be told how to find your React Native instance.**
348+
*This section is only necessary if you're **explicitly** launching a React Native instance without an `Activity` (for example, from within a native push notification receiver). For these situations, CodePush must be told how to find your React Native instance.*
349349

350350
In order to update/restart your React Native instance, CodePush must be configured with a `ReactInstanceHolder` before attempting to restart an instance in the background. This is usually done in your `Application` implementation.
351351

@@ -367,7 +367,7 @@ public class MyReactNativeHost extends ReactNativeHost implements ReactInstanceH
367367
public class MainApplication extends Application implements ReactApplication {
368368

369369
private final MyReactNativeHost mReactNativeHost = new MyReactNativeHost(this);
370-
370+
371371
@Override
372372
public void onCreate() {
373373
CodePush.setReactInstanceHolder(mReactNativeHost);
@@ -378,13 +378,13 @@ public class MainApplication extends Application implements ReactApplication {
378378

379379
**For React Native v0.19 - v0.28**
380380

381-
Before v0.29, React Native did not provide a `ReactNativeHost` abstraction. If you're launching a background instance, you'll likely have built your own, which should now implement `ReactInstanceHolder`. Once that's done...
381+
Before v0.29, React Native did not provide a `ReactNativeHost` abstraction. If you're launching a background instance, you'll likely have built your own, which should now implement `ReactInstanceHolder`. Once that's done:
382382

383383
```java
384384
// 1. Provide your ReactInstanceHolder to CodePush.
385385

386386
public class MainApplication extends Application {
387-
387+
388388
@Override
389389
public void onCreate() {
390390
// ... initialize your instance holder
@@ -639,7 +639,7 @@ Open up your `MainApplication.java` file and make the following changes:
639639
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG);
640640
```
641641

642-
**For React Native v0.19 - v0.28**
642+
**For React Native v0.19 - v0.28**
643643

644644
Open up your `MainActivity.java` file and make the following changes:
645645

0 commit comments

Comments
 (0)