diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index caad54549ac6d5..2ae69e229714bb 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -99,9 +99,9 @@ import com.facebook.react.modules.core.ReactChoreographer; import com.facebook.react.modules.debug.interfaces.DeveloperSettings; import com.facebook.react.packagerconnection.RequestHandler; -import com.facebook.react.surface.ReactStage; import com.facebook.react.uimanager.DisplayMetricsHolder; import com.facebook.react.uimanager.ReactRoot; +import com.facebook.react.uimanager.ReactStage; import com.facebook.react.uimanager.UIManagerHelper; import com.facebook.react.uimanager.ViewManager; import com.facebook.react.uimanager.common.UIManagerType; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index 1e0519aa8ce446..766836fd0b16d1 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -51,7 +51,6 @@ import com.facebook.react.config.ReactFeatureFlags; import com.facebook.react.modules.appregistry.AppRegistry; import com.facebook.react.modules.deviceinfo.DeviceInfoModule; -import com.facebook.react.surface.ReactStage; import com.facebook.react.uimanager.DisplayMetricsHolder; import com.facebook.react.uimanager.IllegalViewOperationException; import com.facebook.react.uimanager.JSPointerDispatcher; @@ -60,6 +59,7 @@ import com.facebook.react.uimanager.ReactClippingProhibitedView; import com.facebook.react.uimanager.ReactRoot; import com.facebook.react.uimanager.ReactRootViewTagGenerator; +import com.facebook.react.uimanager.ReactStage; import com.facebook.react.uimanager.RootView; import com.facebook.react.uimanager.RootViewUtil; import com.facebook.react.uimanager.UIManagerHelper; @@ -598,7 +598,7 @@ public void unmountReactApplication() { } @Override - public void onStage(int stage) { + public void onStage(@ReactStage int stage) { switch (stage) { case ReactStage.ON_ATTACH_TO_INSTANCE: onAttachedToReactInstance(); diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java index e8ddb4b4b18d68..20a89f746bf249 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java @@ -39,7 +39,7 @@ public interface ReactRoot { void runApplication(); /** Handler for stages {@link com.facebook.react.surface.ReactStage} */ - void onStage(int stage); + void onStage(@ReactStage int stage); /** Return native view for root */ ViewGroup getRootViewGroup(); diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/surface/ReactStage.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStage.java similarity index 96% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/surface/ReactStage.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStage.java index 4ae44ea31ba3cf..f322f2ef1970ee 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/surface/ReactStage.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStage.java @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.surface; +package com.facebook.react.uimanager; import static java.lang.annotation.RetentionPolicy.SOURCE;