-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-introduce UIImplementationProvider
Summary: UIImplementationProvider was removed as part of D8650376, this was a breaking change that caused problems in OSS. This diff introduces the concept of a deprecated UIImplementationProvider again to allow OSS community to upgrade to latest version of RN. Reviewed By: achen1 Differential Revision: D10456317 fbshipit-source-id: 6817629524f927dfcb5ebc054dbfd983877b7606
- Loading branch information
1 parent
0bf520a
commit b002df9
Showing
6 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
package com.facebook.react.uimanager; | ||
|
||
import com.facebook.react.bridge.ReactApplicationContext; | ||
import com.facebook.react.uimanager.events.EventDispatcher; | ||
import java.util.List; | ||
|
||
/** | ||
* Provides UIImplementation to use in {@link UIManagerModule}. | ||
*/ | ||
@Deprecated | ||
public class UIImplementationProvider { | ||
|
||
public UIImplementation createUIImplementation( | ||
ReactApplicationContext reactContext, | ||
UIManagerModule.ViewManagerResolver viewManagerResolver, | ||
EventDispatcher eventDispatcher, | ||
int minTimeLeftInFrameForNonBatchedOperationMs) { | ||
return new UIImplementation( | ||
reactContext, | ||
viewManagerResolver, | ||
eventDispatcher, | ||
minTimeLeftInFrameForNonBatchedOperationMs); | ||
} | ||
|
||
public UIImplementation createUIImplementation( | ||
ReactApplicationContext reactContext, | ||
List<ViewManager> viewManagerList, | ||
EventDispatcher eventDispatcher, | ||
int minTimeLeftInFrameForNonBatchedOperationMs) { | ||
return new UIImplementation( | ||
reactContext, | ||
viewManagerList, | ||
eventDispatcher, | ||
minTimeLeftInFrameForNonBatchedOperationMs); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters