Comments (4)
@SYU15 This bug is not related to Expo. It's a bug in this library.
I've made a PR that fixes this, hopefully it gets merged soon. In the meantime, if you need a quick workaround, modify node_modules/react-game-kit/lib/native/utils/game-loop.js
as follows:
- add
this.loop = this.loop.bind(this);
after line 16this.loopID = null;
- optionally, change line 42 from
this.subscribers.splice((id - 1), 1);
todelete this.subscribers[id - 1];
. This will help prevent an app crash if you have more than 1 subscriber to the game loop, assuming you handle the subscribe/unsubscribe properly
from react-game-kit.
from react-game-kit.
[email protected] + [email protected]
from react-game-kit.
@sksahil030 are you using Expo? I am and am getting the same error, so I wondering if it is related? I was going to try and create a repo without it to see if that fixes the issue.
from react-game-kit.
Related Issues (20)
- Run into a problem with two or more sprites changing state simultaneously HOT 2
- Sprite Src Issue In RN HOT 2
- How can I remove the dependency on prop-types (as TypeScript provides type-safety already)?
- Replacing Loop div element with Fragment
- tilemap not updating when passed new array props
- Components should forward classNames HOT 1
- New context API HOT 1
- Keypress in demo fires twice for Firefox
- React Native: <Body><View> = Position disarray
- Sprite: switching repeat not working without changing state
- Does TileMap work with files like tiles.png
- Unit Test Mocks
- CRA 2.0 Issues
- How to create a component of falling shapes
- Current project status HOT 4
- Loop proptypes.object react-game-kit HOT 1
- Demo broken
- Archived? Whats the future on this? HOT 4
- Update build tooling infrastructure.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-game-kit.