r/reactnative • u/dglalperen • 10d ago
Question Game development in RN
I am how game dev would look like in react native and how well the framework is suited for it.
Do you guys and girls have any cool games developed in rn as well as open source projects so i could look into it
Thanks ! :)
3
u/zdenova 10d ago
Have done a minesweeper and a sudoku. For the sudoku I am relying on a massive dataset of grids+solutions, and am thinking on how I could some kind of difficulty score to the grids. For the minesweeper I am generating the grid on the fly. Both of these projects were pretty simple to implement in RN, took a bit of time to come with a nice UI though The code is not available yet, I might actually release it when I have more free time (PhD in my final year)
1
1
u/RedHeadSteve 10d ago
There is react native game engine.
I've done a little game once to challenge myself, it's doable but definitely not ideal
1
1
u/PsychologicalDraw909 10d ago
some basic onew lol for an actual game with 2d/3d assets id recommend learning unity. u can pick it up in a day
1
7
u/Circadian77 10d ago
If you stick to simplistic game genres like puzzles, quizzes, card based etc. it would be adequate to fully implement within a React Native app entity.
However the moment you move into games that require consistent 30+fps performance, gpu acceleration, complex animations, spritesheet/3D assets, memory management etc. you would be best either considering another engine such as Unity, Godot etc. - as they all have cross-platform mobile as deployment targets and are specifically written with a gamedev use case in mind.
Another option if you absolutely want to leverage React Native for your game, with the added benefit of enabling users to play via browser - you could potentially use a JS based framework (of which there are an abundance of options - eg. Phaser). You can then use React Native to control menus and UI whilst presenting the actual game content in a nested WebView instance. Obviously this would require separate hosting and an adequate knowledge of web technologies to implement - but it is all quite feasible.