Add support for custom AndroidViews

Reviewed By: ahmedre

Differential Revision: D2751716

fb-gh-sync-id: 3007cc1eb0303bb2e9eab84836b486e1c2e21021
This commit is contained in:
Denis Koroskin 2015-12-15 20:07:57 -08:00 committed by facebook-github-bot-5
parent edc318fcb9
commit 1fabd86048
3 changed files with 6 additions and 2 deletions

View File

@ -256,7 +256,7 @@ public class ReactShadowNode extends CSSNode {
return Assertions.assertNotNull(mThemedContext);
}
protected void setThemedContext(ThemedReactContext themedContext) {
public void setThemedContext(ThemedReactContext themedContext) {
mThemedContext = themedContext;
}

View File

@ -75,6 +75,10 @@ public class UIImplementation {
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
* and adds it to a node registry.

View File

@ -48,7 +48,7 @@ public class ReactTextInputShadowNode extends ReactTextShadowNode implements
}
@Override
protected void setThemedContext(ThemedReactContext themedContext) {
public void setThemedContext(ThemedReactContext themedContext) {
super.setThemedContext(themedContext);
// TODO #7120264: cache this stuff better