MCPcopy Create free account
hub / github.com/Lobos/react-ui / getNativeComponentFromComposite

Function getNativeComponentFromComposite

docs/lib/react.js:16837–16849  ·  view source on GitHub ↗
(inst)

Source from the content-addressed store, hash-verified

16835var ReactNodeTypes = _dereq_(77);
16836
16837function getNativeComponentFromComposite(inst) {
16838 var type;
16839
16840 while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) {
16841 inst = inst._renderedComponent;
16842 }
16843
16844 if (type === ReactNodeTypes.NATIVE) {
16845 return inst._renderedComponent;
16846 } else if (type === ReactNodeTypes.EMPTY) {
16847 return null;
16848 }
16849}
16850
16851module.exports = getNativeComponentFromComposite;
16852},{"77":77}],127:[function(_dereq_,module,exports){

Callers 2

react.jsFile · 0.85
findDOMNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…