mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Expose the ReactApplicationContext to createShadowNodeInstance()
Reviewed By: AaaChiuuu Differential Revision: D5581337 fbshipit-source-id: 5030e4f046ede1a99d22b2ffebbbfe79e7ce9c5d
This commit is contained in:
committed by
Facebook Github Bot
parent
b06672e6cf
commit
64e9b24ef5
@@ -8,11 +8,6 @@
|
||||
*/
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.react.animation.Animation;
|
||||
@@ -30,6 +25,9 @@ import com.facebook.react.uimanager.events.EventDispatcher;
|
||||
import com.facebook.systrace.Systrace;
|
||||
import com.facebook.systrace.SystraceMessage;
|
||||
import com.facebook.yoga.YogaDirection;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* An class that is used to receive React commands from JS and translate them into a
|
||||
@@ -92,7 +90,7 @@ public class UIImplementation {
|
||||
|
||||
protected ReactShadowNode createShadowNode(String className) {
|
||||
ViewManager viewManager = mViewManagers.get(className);
|
||||
return viewManager.createShadowNodeInstance();
|
||||
return viewManager.createShadowNodeInstance(mReactContext);
|
||||
}
|
||||
|
||||
protected final ReactShadowNode resolveShadowNode(int reactTag) {
|
||||
|
||||
Reference in New Issue
Block a user