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

Commit 24b9d07

Browse files
teodorszeltinsRichard Hua
authored andcommitted
Update README.md (#677)
Changed the end of line column to a comma and added a bit more context
1 parent 118dc75 commit 24b9d07

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,15 +637,29 @@ To set this up, perform the following steps:
637637
Open up your `MainApplication.java` file and make the following changes:
638638

639639
```java
640-
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG);
640+
@Override
641+
protected List<ReactPackage> getPackages() {
642+
return Arrays.<ReactPackage>asList(
643+
...
644+
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG), // Add/change this line.
645+
...
646+
);
647+
}
641648
```
642649
643650
**For React Native v0.19 - v0.28**
644651
645652
Open up your `MainActivity.java` file and make the following changes:
646653
647654
```java
648-
new CodePush(BuildConfig.CODEPUSH_KEY, this, BuildConfig.DEBUG);
655+
@Override
656+
protected List<ReactPackage> getPackages() {
657+
return Arrays.<ReactPackage>asList(
658+
...
659+
new CodePush(BuildConfig.CODEPUSH_KEY, this, BuildConfig.DEBUG), // Add/change this line.
660+
...
661+
);
662+
}
649663
```
650664
651665
*Note: If you gave your build setting a different name in your Gradle file, simply make sure to reflect that in your Java code.*

0 commit comments

Comments
 (0)