Skip to content

Commit

Permalink
update android instructions to reflect newer react-native versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro committed Sep 14, 2016
1 parent 085704a commit c8aa8f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,20 @@ dependencies {
}
```
Change your main activity to add a new package, in `android/app/src/main/.../MainActivity.java`:
Change your main application to add a new package, in `android/app/src/main/.../MainApplication.java`:
```java
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage; // add import
public class MainActivity extends ReactActivity {
public class MainApplication extends Application implements ReactApplication {
// ...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeConfigPackage() // add package
);
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeConfigPackage() // add package
);
}
```

Expand Down

0 comments on commit c8aa8f0

Please sign in to comment.