MainApplication.java
Chad-Mowbray opened this issue · 2 comments
Chad-Mowbray commented
New at this so apologies. In MainApplication.java is the following:
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return packages;
}
but the readme shows:
protected List<ReactPackage> getPackages() {
//some variables
return Arrays.<ReactPackage>asList(
//probably some items like `new BlahPackage(),`
//just add into the list (don't forget commas!):
SendSMSPackage.getInstance()
);
}
Is there a way to get "SendSMSPackage.getInstance()" to work in there?
tkporter commented
Hi! I haven’t tried this myself but you should be able to do packages.add(SendSMSPackage.getInstance());
above the return statement
Chad-Mowbray commented
Thanks for responding. I actually got it to work by not adding it at all. With the import statement, maybe the method just includes everything?