mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
pass EventDispatcher to UIImplementation constructor
Summary: This way `UIImplementation` can hold on to it and use it outside of calls from the `UIManagerModule`. @public Reviewed By: lexs Differential Revision: D3899774
This commit is contained in:
committed by
Ahmed El-Helw
parent
e4129fe1b4
commit
ab5de9b9ae
@@ -14,6 +14,7 @@ import java.util.List;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.uimanager.UIImplementationProvider;
|
||||
import com.facebook.react.uimanager.ViewManager;
|
||||
import com.facebook.react.uimanager.events.EventDispatcher;
|
||||
|
||||
/**
|
||||
* UIImplementationProvider that creates instances of {@link FlatUIImplementation}.
|
||||
@@ -22,7 +23,8 @@ public final class FlatUIImplementationProvider extends UIImplementationProvider
|
||||
@Override
|
||||
public FlatUIImplementation createUIImplementation(
|
||||
ReactApplicationContext reactContext,
|
||||
List<ViewManager> viewManagers) {
|
||||
return FlatUIImplementation.createInstance(reactContext, viewManagers);
|
||||
List<ViewManager> viewManagers,
|
||||
EventDispatcher eventDispatcher) {
|
||||
return FlatUIImplementation.createInstance(reactContext, viewManagers, eventDispatcher);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user