MCPcopy Create free account
hub / github.com/callstack/react-native-paper / render

Method render

src/components/Portal/PortalHost.tsx:116–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 private manager: PortalManager | null | undefined;
115
116 render() {
117 return (
118 <PortalContext.Provider
119 value={{
120 mount: this.mount,
121 update: this.update,
122 unmount: this.unmount,
123 }}
124 >
125 {/* Need collapsable=false here to clip the elevations, otherwise they appear above Portal components */}
126 <View
127 style={styles.container}
128 collapsable={false}
129 pointerEvents="box-none"
130 >
131 {this.props.children}
132 </View>
133 <PortalManager ref={this.setManager} />
134 </PortalContext.Provider>
135 );
136 }
137}
138
139const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected