apply suggested fix for activity restore crash

This commit is contained in:
Roland Osborne 2023-03-20 05:26:48 -07:00
parent 7b689d0343
commit 016154bdf1

View File

@ -16,6 +16,11 @@ public class MainActivity extends ReactActivity {
return "Databag"; return "Databag";
} }
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}
/** /**
* Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
* DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React