mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 21:46:07 +08:00
Add support for custom AndroidViews
Reviewed By: ahmedre Differential Revision: D2751716 fb-gh-sync-id: 3007cc1eb0303bb2e9eab84836b486e1c2e21021
This commit is contained in:
committed by
facebook-github-bot-5
parent
edc318fcb9
commit
1fabd86048
@@ -256,7 +256,7 @@ public class ReactShadowNode extends CSSNode {
|
|||||||
return Assertions.assertNotNull(mThemedContext);
|
return Assertions.assertNotNull(mThemedContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setThemedContext(ThemedReactContext themedContext) {
|
public void setThemedContext(ThemedReactContext themedContext) {
|
||||||
mThemedContext = themedContext;
|
mThemedContext = themedContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,10 @@ public class UIImplementation {
|
|||||||
return mShadowNodeRegistry.getNode(reactTag);
|
return mShadowNodeRegistry.getNode(reactTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected final ViewManager resolveViewManager(String className) {
|
||||||
|
return mViewManagers.get(className);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a root node with a given tag, size and ThemedReactContext
|
* Registers a root node with a given tag, size and ThemedReactContext
|
||||||
* and adds it to a node registry.
|
* and adds it to a node registry.
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class ReactTextInputShadowNode extends ReactTextShadowNode implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setThemedContext(ThemedReactContext themedContext) {
|
public void setThemedContext(ThemedReactContext themedContext) {
|
||||||
super.setThemedContext(themedContext);
|
super.setThemedContext(themedContext);
|
||||||
|
|
||||||
// TODO #7120264: cache this stuff better
|
// TODO #7120264: cache this stuff better
|
||||||
|
|||||||
Reference in New Issue
Block a user