r/reactnative • • Jul 14 '19

Started learning React Native 2 years ago, today I launched my first real app built entirely with React Native! (build details in the comments)

263 Upvotes

31 comments sorted by

28

u/turnuptuesday Jul 14 '19 edited Jul 14 '19

Fad Mania features a new game each week based on some trending topic in the news. This week’s topic is based on the Area 51 Facebook event. Each day users can play to reach a score threshold that enters them into a sweepstakes for that day’s prize.

Edit: Here’s the link - https://apps.apple.com/us/app/fad-mania/id1364903363

The app is built in vanilla React Native, using Expo’s Bare Workflow to use uni-modules such as permissions. The games are HTML5 based and are played in a Webview.

The rest of the stack includes:

React Native Navigation

React Native Reanimated

React Native Gesture Handler

AWS Appsync / Amplify for graphQL backend

Apollo

Code-push

3

u/anewidentity Jul 14 '19

Very interesting and awesome job

I have a few questions

  1. why did you habe to eject? Permission is included in the managed workflow

  2. how did you find AppSync? Did you use the DynamoDB DB? How was the experience? Any blockers or struggles in querying the data?

1

u/turnuptuesday Jul 15 '19
  1. I was saying that I'm using expo packages with unimodules for common packages like Permissions. The main reason for starting with vanilla React Native over Expo was that I wanted to use the React Native Navigation library which is not compatible with Expo.

  2. Yes I used DynamoDB with AppSync. It works for simple use cases, but as things get more complicated I think you would be better off just writing your own server with Apollo Server. I had to write a lot of custom resolvers in lambda and in Amazon's special resolver language, which was a bit of hassle.

21

u/bigarb16 Jul 14 '19

The UI looks great and the app overall looks really polished. As someone working towards releasing their first app using React Native I tip my cap to you! Congrats on the huge milestone and I wish you a ton of success on this project!

4

u/turnuptuesday Jul 14 '19

I appreciate that so much, thank you! I wish you luck in your journey.

14

u/MoreJelly Jul 14 '19

Wow Did you make the game too?

15

u/turnuptuesday Jul 14 '19

Wow Did you make the game too?

I did not, one of my talented friends did!

1

u/infamous4chanhacker Jul 14 '19

Can I ask how the game was put in React Native? Is it made with React Native or some other tool and inserted somehow?

2

u/turnuptuesday Jul 15 '19

Just a plain Webview from the react-native-webview package. The game and the app communicate through javascript injections and post messages. The game is made with PlayCanvas, but is ultimately just like any other html5 game.

4

u/BalrogOfIsengard Jul 14 '19

Sounds brilliant. Can I get a link too?

1

u/turnuptuesday Jul 15 '19

Added the link in my comment above!

3

u/BuiceJox Jul 14 '19

This looks fun! Those animations are something else! Can I get the link?

1

u/turnuptuesday Jul 15 '19

Added the link in my comment above!

5

u/boki345 Jul 14 '19

This looks amazing. I would love to have a link to the repo or any blogs about how you made this app. I would also like the download link as well. Thanks.

3

u/turnuptuesday Jul 14 '19

Unfortunately the code is not open source, but I'm sure some blog posts will be made in the near about some of the more non trivial things! I updated my comment to include the link.

2

u/[deleted] Jul 14 '19

UI is absolutely amazing, well donr

1

u/turnuptuesday Jul 15 '19

Appreciate it!

2

u/[deleted] Jul 14 '19

Actually this video made me excited about learning react native,thank for this motivation and keep on keeping on!

1

u/turnuptuesday Jul 15 '19

I really appreciate that! React Native has come a long way the past two years and I think it is finally to a point where anyone can build awesome app experiences! I wish you luck in your learning.

6

u/vli034 Jul 14 '19

I love this !!

2

u/retrojorgen Jul 14 '19

Are all the menus native? How do you communicate with the webview? Looks great :)

1

u/turnuptuesday Jul 15 '19

Thank you! Some of the popup modals are through React Native Navigation and some of the other page transitions that look like different screens are actually just transition animations using React Native Reanimated's Transitions component. The react-native-webview package has an API for communicating between the app and the webview.

1

u/iamzamek Jul 14 '19

Is this possible to learn React in month if I understand some pure JS and it will be the first framework?

1

u/turnuptuesday Jul 15 '19

I would say it depends on how much time you will spend learning during that month. I would also start first with regular React, not React Native. If you spend 6-8 hours a day for a month learning and building stuff, you can definitely get a pretty good grasp on how to build applications with React.

2

u/JackRyu iOS & Android Jul 14 '19

Good πŸ‘ Job... πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘

2

u/lantosgyuri Jul 14 '19

Amazing job! Thanks for the motivation! :)

1

u/agent_paul Jul 14 '19

Wow looks great! Keep it up

1

u/burhanyilmaz Jul 15 '19

Awesome :) is there an android app?

1

u/LaweZ Jul 16 '19

Do you use react-navigation when moving between screens or it all just animations moving components around?

Great UI/UX btw !!!!

1

u/orange_chan Jul 26 '19

The animations look very polished and professional, I really like them! Is there any way to use the app if I'm not from the US? I downloaded it, but I can't figure out how to get past the screen that requires an US phone number.

1

u/gregoryrn Jul 27 '19

Hey. Do you have Android version? Wanna touch it too