Skip to content

Commit e8dc132

Browse files
committed
Update README
React Native 0.29.0 changed application configuration. MainActivity no longer supports getPackages method.
1 parent 91b1126 commit e8dc132

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,15 @@ import com.facebook.react.shell.MainReactPackage;
133133

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

136-
public class MainActivity extends ReactActivity {
136+
public class MainApplication extends Application implements ReactApplication {
137137

138138
...
139139

140140
@Override
141141
protected List<ReactPackage> getPackages() {
142142
return Arrays.<ReactPackage>asList(
143-
new NotificationPackage(this) // <- Add this line
143+
...
144+
new NotificationPackage() // <- Add this line
144145
);
145146
}
146147

0 commit comments

Comments
 (0)