I use react native navigation to set up the navigation in my android app, I use startTabBasedApp() and I have a few modals that contain some text input, and when I tap TextInput and the android keyboard opens it resizes the content inside the Modal, what I really need it's to push the whole modal up and focus on the TextInput.
public class MyApplication extends NavigationApplication {
@Override
public void onCreate() {
registerActivityLifecycleCallbacks(new ActivityLifecycleCallbacks() {
@Override
public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
}
});
}
}
This function works perfectly with the normal screens but it doesn't work for the Modals.