MCPcopy
hub / github.com/bberak/react-native-game-engine / UNSAFE_componentWillReceiveProps

Method UNSAFE_componentWillReceiveProps

src/GameLoop.js:29–34  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

27 }
28
29 UNSAFE_componentWillReceiveProps(nextProps) {
30 if (nextProps.running !== this.props.running) {
31 if (nextProps.running) this.start();
32 else this.stop();
33 }
34 }
35
36 start = () => {
37 this.touches.length = 0;

Callers

nothing calls this directly

Calls 2

startMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected