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

Method render

src/MapHeatmap.tsx:107–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 render() {
108 const AIRMapHeatmap = this.getNativeComponent();
109 const propGradient = this.props?.gradient;
110 let gradient: NativeProps['gradient'];
111 if (propGradient) {
112 const colors = propGradient.colors.map(c => processColor(c));
113 gradient = {...propGradient, colors};
114 }
115 return (
116 <AIRMapHeatmap {...this.props} gradient={gradient} ref={this.heatmap} />
117 );
118 }
119}
120
121export default decorateMapComponent(MapHeatmap, 'Heatmap', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected