You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -343,9 +343,9 @@ public class MainActivity extends ReactActivity {
343
343
}
344
344
```
345
345
346
-
#### Background React Instances ####
346
+
#### Background React Instances
347
347
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.*
349
349
350
350
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.
351
351
@@ -367,7 +367,7 @@ public class MyReactNativeHost extends ReactNativeHost implements ReactInstanceH
@@ -378,13 +378,13 @@ public class MainApplication extends Application implements ReactApplication {
378
378
379
379
**For React Native v0.19 - v0.28**
380
380
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:
382
382
383
383
```java
384
384
// 1. Provide your ReactInstanceHolder to CodePush.
385
385
386
386
publicclassMainApplicationextendsApplication {
387
-
387
+
388
388
@Override
389
389
publicvoidonCreate() {
390
390
// ... initialize your instance holder
@@ -639,7 +639,7 @@ Open up your `MainApplication.java` file and make the following changes:
639
639
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG);
640
640
```
641
641
642
-
**For React Native v0.19 - v0.28**
642
+
**For React Native v0.19 - v0.28**
643
643
644
644
Open up your `MainActivity.java` file and make the following changes:
0 commit comments