GithubHelp home page GithubHelp logo

Comments (4)

filbertteo avatar filbertteo commented on May 5, 2024 1

@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:

  1. add this.loop = this.loop.bind(this); after line 16 this.loopID = null;
  2. optionally, change line 42 from this.subscribers.splice((id - 1), 1); to delete 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.

sahil-innostax avatar sahil-innostax commented on May 5, 2024

screenshot_1513329980

from react-game-kit.

iamlion avatar iamlion commented on May 5, 2024

[email protected] + [email protected]

from react-game-kit.

SYU15 avatar SYU15 commented on May 5, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.