getChildHostContext() — react Function Reference
Architecture documentation for the getChildHostContext() function in ReactFiberConfigFabric.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 8a8c54f2_2da3_57df_945c_52b8881bcdd3["getChildHostContext()"] 948a0d34_693c_c158_f23e_d41306507c72["ReactFiberConfigFabric.js"] 8a8c54f2_2da3_57df_945c_52b8881bcdd3 -->|defined in| 948a0d34_693c_c158_f23e_d41306507c72 style 8a8c54f2_2da3_57df_945c_52b8881bcdd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-native-renderer/src/ReactFiberConfigFabric.js lines 269–291
export function getChildHostContext(
parentHostContext: HostContext,
type: string,
): HostContext {
if (__DEV__) {
const prevIsInAParentText = parentHostContext.isInAParentText;
const isInAParentText =
type === 'AndroidTextInput' || // Android
type === 'RCTMultilineTextInputView' || // iOS
type === 'RCTSinglelineTextInputView' || // iOS
type === 'RCTText' ||
type === 'RCTVirtualText';
// TODO: If this is an offscreen host container, we should reuse the
// parent context.
if (prevIsInAParentText !== isInAParentText) {
return {isInAParentText};
}
}
return parentHostContext;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getChildHostContext() do?
getChildHostContext() is a function in the react codebase, defined in packages/react-native-renderer/src/ReactFiberConfigFabric.js.
Where is getChildHostContext() defined?
getChildHostContext() is defined in packages/react-native-renderer/src/ReactFiberConfigFabric.js at line 269.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free