mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Delete com/facebook/react/surface package
Summary: com/facebook/react/surface package only contains one file (ReactStage), this annotation is only used internally by the framework and it fit better in uimanager package. In this diff we are: - deleting com/facebook/react/surface package - moving ReactStage to com/facebook/react/uimanager - Properly using ReactStage in ReactRoot and ReactRootView This is a backward compatible change because ReactStage is only used in the internals of React Native bypass-github-export-checks changelog: [internal] internal Reviewed By: rshest Differential Revision: D51262575 fbshipit-source-id: 34c140fbd0868a5a95489ee51b3262263b33ca69
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a86a9a392d
commit
31db0abb41
+1
-1
@@ -99,9 +99,9 @@ import com.facebook.react.modules.core.DeviceEventManagerModule;
|
||||
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;
|
||||
|
||||
+2
-2
@@ -51,7 +51,6 @@ import com.facebook.react.common.annotations.VisibleForTesting;
|
||||
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.PixelUtil;
|
||||
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 class ReactRootView extends FrameLayout implements RootView, ReactRoot {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStage(int stage) {
|
||||
public void onStage(@ReactStage int stage) {
|
||||
switch (stage) {
|
||||
case ReactStage.ON_ATTACH_TO_INSTANCE:
|
||||
onAttachedToReactInstance();
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user