Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Ract Native Websocket Game

$
0
0

I've built an online multiplayer game using HTML(with CSS) and Javascript as frontend. This is built for a phone, but with only a little experience with app development, I started making it a browser game instead. Now that I have finished the browser game, I thought that I would give the app a try. I started learning React Native, I've started to understand it, but I have run into some problems.

  1. The game needs an infinite loop. I've tried the same method as I used in the browser game SetTimeout(), but the just stops the main thread when used in react native.
  2. I need to store information between different pages, but that apparently isn't straight forward.
  3. The Websocket is getting initialized multiple times and it seems like nothing really can't be done to prevent it.

That is my main problems right now. I have looked into them, but can't really seem to find any solutions.

So my question for you is. Am I using the right framework/libary/???, to create something like this or should I use another one?

I've looked at Angular, Cordova, Vue.js, and Flutter, but I can't really see how it is that much different in my case. Could be wrong though.

I know it is a lot to ask for, but I would really appreciate some help. Thanks.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>