Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
React Native 0.29.0 changed application configuration. MainActivity no
longer supports getPackages method.
  • Loading branch information
andy9775 committed Aug 4, 2016
1 parent 91b1126 commit e8dc132
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,15 @@ import com.facebook.react.shell.MainReactPackage;

import io.neson.react.notification.NotificationPackage; // <- Add this line

public class MainActivity extends ReactActivity {
public class MainApplication extends Application implements ReactApplication {

...

@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new NotificationPackage(this) // <- Add this line
...
new NotificationPackage() // <- Add this line
);
}

Expand Down

0 comments on commit e8dc132

Please sign in to comment.