()
| 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 | |
| 187 | GameEngine.defaultProps = { |
nothing calls this directly
no outgoing calls
no test coverage detected