MCPcopy Create free account
hub / github.com/bberak/react-native-game-engine / render

Method render

src/GameEngine.js:161–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 };
160
161 render() {
162 return (
163 <View
164 style={[css.container, this.props.style]}
165 onLayout={this.onLayoutHandler}
166 >
167 <View
168 style={css.entityContainer}
169 onTouchStart={this.onTouchStartHandler}
170 onTouchMove={this.onTouchMoveHandler}
171 onTouchEnd={this.onTouchEndHandler}
172 >
173 {this.props.renderer(this.state.entities, this.screen, this.layout)}
174 </View>
175
176 <View
177 pointerEvents={"box-none"}
178 style={StyleSheet.absoluteFill}
179 >
180 {this.props.children}
181 </View>
182 </View>
183 );
184 }
185}
186
187GameEngine.defaultProps = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected