I implemented my own Android module from the Bambora SDK and mapped its own view (activity) to getCurrentActivity().startActivity(intent);
It works like a charm, but finish() makes the whole application terminated rather than returning. Here are some of my codes.
public class ToastModule extends ReactContextBaseJavaModule { @ReactMethod
Therefore, I am sure that this is not a reason from the Bambora SDK and finish() kills NativeCardRegistrationActivity . The entire application is killed because there is no activity in the Activity Stack . Since I am not familiar with Java code, I cannot understand what the reason is.
Please let me know what happened and how I can return to the initial active reaction.
** Update
Here are my MainApplication.java codes
public class MainApplication extends MultiDexApplication {
Currently, I have temporarily commented on new MainReactPackage() and no error occurs, but if I remove the comment to enable new MainReactPackage() , then I can see the error with a red background.
Please check it. ReactNative: Android core module
source share