Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created April 18, 2019 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukeSmetham/91083e58eb7732e47a4035d4ab2119f1 to your computer and use it in GitHub Desktop.
Save LukeSmetham/91083e58eb7732e47a4035d4ab2119f1 to your computer and use it in GitHub Desktop.
import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage; // <--- THIS
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativePushNotificationPackage() // <---- & THIS
);
}
};
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment