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

Method stop

src/DefaultTimer.js:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 stop() {
40 if (this.loopId) {
41 cancelAnimationFrame(this.loopId);
42 this.loopId = null;
43 }
44 }
45
46 subscribe(callback) {
47 if (this.subscribers.indexOf(callback) === -1)

Callers 6

componentWillUnmountMethod · 0.80
GameEngineClass · 0.80
componentWillUnmountMethod · 0.80
GameLoopClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected