autoCreateRoot() — react Function Reference
Architecture documentation for the autoCreateRoot() function in UIManager.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 36ee4577_044e_7010_924c_789592d466a0["autoCreateRoot()"] aabad4ed_b9f7_2613_21b9_14cc01114875["UIManager.js"] 36ee4577_044e_7010_924c_789592d466a0 -->|defined in| aabad4ed_b9f7_2613_21b9_14cc01114875 style 36ee4577_044e_7010_924c_789592d466a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/UIManager.js lines 16–27
function autoCreateRoot(tag) {
// Seriously, this is how we distinguish roots in RN.
if (!views.has(tag) && tag % 10 === 1) {
roots.push(tag);
views.set(tag, {
children: [],
parent: null,
props: {},
viewName: '<native root>',
});
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does autoCreateRoot() do?
autoCreateRoot() is a function in the react codebase, defined in packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/UIManager.js.
Where is autoCreateRoot() defined?
autoCreateRoot() is defined in packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/UIManager.js at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free