You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 10, 2019. It is now read-only.
I'm on step 4 in the readme, registering the react package. Android studio is giving me error on these lines for passing in this to the ReactDatePackage:
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
, new ReactDatePackage(this)
);
Is there a new way to register packages like this?
The error is a bit cryptic, it says:
asList() cannot be applied to:
Expected Parameters: array: com.facebook.react.ReactPackage...
Actual Arguments: new MainReactPackage() (com.facebook.react.shell.MainReactPackage)
new ReactDatePackage(this) (me.nucleartux.date.ReactDatePackage)
And it only appears when I pass 'this' to the ReactDatePackage constructor