r/reactnative • • Nov 08 '20

I built my first React Native app πŸŽ‰ My experience coming from web development in the comments

Post image
237 Upvotes

36 comments sorted by

45

u/AsSimple Nov 08 '20 edited Nov 08 '20

Hey /r/reactnative πŸ‘‹

I just got my first React Native app DogNote to the App Store and Play Store. DogNote is an app for pet owners/caretakers to log pet-related events together in sync. Personalized events, reminders, weight graphs.

https://dognote.app/

Building it has been a delightful experience coming from web development. Most of the knowledge about React & state management carries over and to top it off Expo makes it possible to develop and deploy without even opening Xcode or Android studio. It's great not having to learn every new tool in one go but excited to try integrating a native module as well. I felt like the biggest differences from the web are the navigation and deployment side of things.

The project is written in TypeScript with Redux (redux-toolkit & redux-persist) for state management & UI Kitten for the UI library. I've been on the Expo managed workflow, a major major time saver πŸš€. Props to the Expo team! I do have a git branch, where I have ejected and experimenting with expo-in-app-purchases and react-native-watch-connectivity for communication with a watch app,Β but I'm not ready to drop all the benefits of managed workflow just yet.Β 

Excited for the future of animations in React Native with the awesome new intuitive API of reanimated v2. This will bring so many more performant high-quality libraries to the table. It has also been great seeing posts on this subreddit from u/wcandillonΒ showing how even complex animations can be done in React Native πŸ˜€

The API is built using Django, PostgreSQL, Traefik. Celery for push notifications with Expo's Push API.

Other libraries & services used:

5

u/mouseymonkey48 Nov 08 '20

How long did it take?

4

u/jonaHillsAnus Nov 08 '20

I would like to know this as well, and if you can break down how long the front end took vs the api etc

And looks great btw, very polished and pro looking!

11

u/AsSimple Nov 08 '20

Thanks. I estimate everything together took ~150 hours.

The api probably took around 20-30 hours as I have previous experience and it's mostly crud endpoints with permission checks, image uploads, celery tasks for push notifications.

Rest of it went on learning React Native, building all the screens, learning from mistakes, refactoring multiple times, it's way too easy to drop below 60fps with the JS thread. Also animations and images are hard to get right. So much time navigating Apple and Google dev consoles to find stuff.

1

u/yashiikaaa Nov 09 '20

Woah 150 hours only! Wow man. Good job πŸ˜ΆπŸ‘πŸ‘πŸ‘ I wish I'll reach that kind of speed someday too.

0

u/[deleted] Nov 08 '20

[deleted]

1

u/captainR0bbo Nov 09 '20

Lol tell me about it.

1

u/nahtnam Nov 10 '20

Great work! Few questions:

  1. Why not node for the backend?

  2. How much Datadog cost you? What do you monitor?

Thanks!

2

u/AsSimple Nov 10 '20
  1. I would try node for my next project for the amazing potential of reusing types/utilities/packages across frontend & backend, but had previous experience with DRF (which is awesome as well) so went with that for this project.

  2. I'm on the free plan. Mostly just monitoring network requests for discovering slow db queries to see if any endpoints might need optimizations

1

u/NZHellHole Nov 09 '20

Impressive effort considering the broad technologies you used and the time taken to build. I agree about the ability to transition between React and React Native being relatively easy (haven't used Expo but hear it's a good place to start for RN noobs).

2

u/iam_daniello Nov 08 '20

Did you created the illustrations by yourself?

5

u/AsSimple Nov 08 '20 edited Nov 08 '20

I wish, would need quite a lot of practice to create these myself. The larger illustrations came from https://ui8.net and were customized in Figma to fit the app.

2

u/part_robot Nov 08 '20

Wow, that's an amazing resource. Thanks for sharing.

Also: nice app :) Looks excellent.

4

u/tomthedevguy Nov 08 '20

The UI looks nice

1

u/Sincjefe Nov 09 '20

What did you use to create the graph and what library do you use to Handle reminder ?

1

u/dev-balmda Nov 09 '20

which language did you use on the web app? it looks really good and similar with the react navigation.

1

u/AsSimple Nov 09 '20

The landing page is built with TypeScript, React, Next.js

1

u/gerald_finch Nov 09 '20

Looks great congrats what is the back-end ???

1

u/AsSimple Nov 09 '20

Django REST framework is used to build the backend API

1

u/IVIURRAY Nov 09 '20

Where is the API backend deployed? How do you communicate with it?

3

u/AsSimple Nov 09 '20

The API is deployed to api.dognote.app (hosted in UpCloud) and axios is used in React Native to make requests.

1

u/LinkifyBot Nov 09 '20

I found links in your comment that were not hyperlinked:

I did the honors for you.


delete | information | <3

1

u/finnish_splitz Nov 09 '20 edited Nov 09 '20

Looks really nice, but the time being in big bold white letters seems odd. Why is it so prominent? I would think thin, small, and grayish would look better.

I’m criticizing that as really the only flaw. Everything else looks really nice. I’m working on a dog app as well (in no way competitive to yours) and I’ll be checking this out more closely.

edit: if only a single photo is uploaded for an event you should prevent horizontal scrolling on the view. Also, when you go add a photo to a post and are still in the post screen, the bottom of the image preview is cut off.

Also, for selecting a breed, I would suggest using UI Kitten’s autocomplete component. I have a JSON list of all AKC recognized breeds that includes official name, plural name, and traditional name (aka Retriever (Golden) and Golden Retriever) if you would like that.

2

u/AsSimple Nov 09 '20

- You might be right. At some point I felt that time is an important aspect. I'll try and see how it looks when it's a bit less in the face.
- I will make the changes related to photos.
- I tried UI Kitten's autocomplete at some point, but having a bottom sheet felt more performant and native. It should have some search though. Yeah with breeds it's interesting, each country has their own versions so which one to pick? I did find a UKC recognized JSON, but currently went with one from wiki that has min weight and max weight attached as well, that can be used in the weight graph as a recommendation.

Thanks for the great feedback πŸ™‚

3

u/decaySmash Nov 09 '20

I have a project I am looking to build with react native, but I am finding a lot of information that says to build a PWA in lieu of a native app. Any thoughts on this?

1

u/patelrr_21 Nov 09 '20

Search for TWA (Trusted Web Activities), it might help you to get your PWA on native app.

2

u/HW_HEVC_Decode Nov 14 '20

Looks awesome! Will share with some pet owners!

1

u/justlasse Nov 09 '20

Impressive work!

1

u/[deleted] Nov 09 '20

Looks awesome!

1

u/supermonkeyman183716 Nov 09 '20

man your app is pretty dope!! what have you used for navigation? and you used expo with managed workflow?

1

u/Elijah_101 Nov 12 '20

u/AsSimple do you have discord? I'd like to ask some questions as I'm working on a mobile app on my own as well. I'm currently working on the api side of it first. Thank you