Hi good morning, I would like to ask help because I'm a newbie in react and I only know how to add package in new ways.
Can anyone help me how to add this package in new react native way heres the sample code
`public class MainActivity extends ReactActivity {
/**
Returns the name of the main component registered from JavaScript.
This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "sampleproject";
}
}
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new VectorIconsPackage(),
new WebRTCModulePackage()
);
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
Hi good morning, I would like to ask help because I'm a newbie in react and I only know how to add package in new ways.
Can anyone help me how to add this package in new react native way heres the sample code
`public class MainActivity extends ReactActivity { /**
}
public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override protected boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new VectorIconsPackage(),
new WebRTCModulePackage()
);
}
};
@Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; }
@Override public void onCreate() { super.onCreate(); SoLoader.init(this, / native exopackage / false); }
} `
Please help me for solving my problem thanks!