File tree Expand file tree Collapse file tree
android/lib/src/main/java/com/ern/api/impl/navigation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ private NavigationLaunchConfig createNavLaunchConfigInternal() {
145145 @ CallSuper
146146 protected void onCreate (Bundle savedInstanceState ) {
147147 super .onCreate (savedInstanceState );
148+ preRootComponentRender ();
148149 if (mainLayout () != NONE ) {
149150 setContentView (mainLayout ());
150151 }
@@ -156,6 +157,14 @@ protected void onCreate(Bundle savedInstanceState) {
156157 setupNavBar ();
157158 }
158159
160+ /**
161+ * Override this to perform any action that needs to be performed before the root component is first rendered.
162+ * Some apps might only choose to initialize the container inside an activity. This method can act as a helper method for them to perform init.
163+ */
164+ protected void preRootComponentRender () {
165+ // Do nothing here, override if needed.
166+ }
167+
159168 @ Override
160169 protected void onDestroy () {
161170 super .onDestroy ();
You can’t perform that action at this time.
0 commit comments