r/reactnative • • Jun 26 '20

Tri platform react-native game with expo, firestore and firebase cloud functions

250 Upvotes

18 comments sorted by

9

u/andordavoti Jun 26 '20

Added web support to an online Tic Tac Toe game I previously shared, made with /u/ChiefKoshi. Built with expo and firebase.

Download links and web app: tictactoe.no 

GitHub repo: https://github.com/andordavoti/tic-tac-toe-app

7

u/clovell Jun 26 '20

That’s amazing! Would love to read about how you made it and what tech you used, etc.

I’m in the midst of building something somewhat similar and would love to hear any recommendations.

What was the hardest part to get working?

8

u/andordavoti Jun 26 '20

Thanks! We used expo so it was really easy to get it up and running on the web as well with react native web. It was just a couple hours to get it up and running on web as well. We used firebase for hosting, the database (firesrore) for creating the lobbies and updating the columns in the lobby. So that's basically the backend. We also have a cloud function for creating the new game which runs on firebase as well. The hardest part for me was probably to get to know firebase, but since the friend I partnered with was familiar with it, it was a lot easier to learn. What are you planning to build?

1

u/WillBackUpWithSource Jun 27 '20

Expo makes getting things on the web super super easy

3

u/up_yer_kilt Jun 26 '20 edited Jun 26 '20

Looks good! Seems simple but lots o different tech on display. Only minor UI thing is the board slightly moves up/down on state changes making rerender quite noticeable. ie. Absolute positioning / fixed dimensions would tidy this up

1

u/andordavoti Jun 27 '20

Thanks, will look into it!

1

u/darwin_vinci7 Jun 26 '20

Wow, that is some clean UI.. Amazing!

1

u/andordavoti Jun 26 '20

Thanks man!

1

u/masterbruno11 Jun 27 '20

Nice! I'm planning to make one just for learning web programming. How long did make this? Given I'm a newbie in webdev.

1

u/andordavoti Jun 27 '20

It took a couple months, but we really only worked on it on and off, so I'd say a couple of weeks of work is really all it was because firebase simplified the backend. Good luck with your journey in to web development man!

1

u/kidjou1990 Jun 27 '20

I’m new to coding with react native and I’m looking for a good guide for firebase. Any recommendations? Your app looks great and neat. I’d love to implement something like this

1

u/andordavoti Jun 27 '20

Thanks! I watched a lot of fireship.io on YouTube which helped me out a lot, highly recommended

1

u/geniium Jun 27 '20

Really cool, nice work. Very clean!

1

u/eveningkid Jun 27 '20

Would be really nice if we could see open lobbies to play with some stranger!

1

u/andordavoti Jun 27 '20

yup, that would be cool, will look into it

2

u/[deleted] Jun 27 '20

[removed] — view removed comment

1

u/andordavoti Jun 27 '20

Thanks, just send me a DM, I'd be happy to help out;)