r/reactnative • u/zsan99 • Feb 08 '21
After a year of playing with React Native on the side my studies, here is the result: Keystone, a social habit tracker
26
u/9rogrammer Feb 08 '21
Hi /u/zsaSean,
Congratulations on the app release. The app looks really cool. I'm also a React/React Native developer. I would like to ask you couple of questions on your journey to develop this app.
How did you find design inspiration for the app ? Did you develop the UI/UX all by yourself or did you took some external help like a UI/UX developer, Dribbble, Behance etc. ?
You said you used Redux for state management. Did you used redux-toolkit or did you used simple redux ? Did you followed any articles to structure your redux store or was it only the documentation that helped ?
Was the app developed using TypeScript or JavaScript ? If you used TypeScript, what resources did you used to learn TypeScript ?
What were the most challenging things you faced while developing your app with React Native ?
Did you developed the backend for this application as well ? What technology did you used to develop it ?
I installed the app on my iPad but I suppose you only developed this app for mobile right ? On my iPad, the app ran on an iPhone viewport with black background.
Can you suggest some tips, resources for learning and building apps with React Native ?
Lastly, can you share your Github/Twitter/Website links so that I or other developers can reach out to you for help or suggestions ?
4
u/zsan99 Feb 09 '21
Thank you!
- Design inspirations: I looked at a lot of stuff on Dribbble and tried a bunch of existing habit trackers. I let my unconscious do the job and after a few days I had a rough idea of what it would look like. Then it was process of iterating and trying many different things and only keeping what seemed right. Also I should mention it wasn't my first time designing an interface, so I had inspiration from previous projects.
- Redux: I use simple Redux, never heard of redux-toolkit but it sounds interesting, I will check it out, thanks. I used articles to understand how Redux works but not for the structure of the store itself no.
- Typescript: Unfortunately I don't use Typescript. I started with classical Javascript thinking I'd make the switch later but ended up never making it. But this will probably become a priority if someone else joins the project and has to work on the code with me.
- Challenges: Making the app look and feel native. When writing pure JS components, it's easy to end up with something that feels clunky. So it becomes crucial to really understand how React works to make sure that your components are optimised and don't render unnecessarily. Working with Javascript's single thread is definitely a challenge too. And responsiveness.
- Backend: Yes I did the backend too. Went for Firebase / Firestore + Cloud Functions which is amazing for building an MVP. I'm currently looking at adding Google Cloud Run to the stack as Cloud Functions alone are not really adapted for my use case.
- iPad: No iPad version yet, sorry!
- Tips, resources: Can it be done in React Native by William Candillon. He's the goat. Also whenever your app is not compiling without showing any error, restart your computer, use react-native-clean-project and try again. It's a lifesaver. Oh and React Native Debugger is great too.
- Socials: Best way to contact me is to send me a pm here or email hello[at]getkeystone.app
3
u/Puzzleheaded_End_148 Feb 09 '21
I hadn't spent much/any time on dribbble but seeing your response has made me go check it out. This is a fantastic site for inspiration! Thanks!
2
1
u/eazylaykzy Feb 09 '21
u/zsan99 Please take a brief moment to respond to these questions.
Thank you.
6
5
Feb 08 '21
Nice job! How’d you do the 👌effect?
9
u/zsan99 Feb 08 '21
Each emoji is a Text component with a random x and y position (the x range is the width of the screen and y range is half the height of the screen). These emojis are initially positioned out of the screen and are then animated to pop up using the translateY style prop. (Animated.decay for the rise, exponential easing for the fall). The background is just a superposition of different Views with their opacities animated. If you'd like more details, feel free to pm me!
1
u/Thravia Feb 08 '21
This is really interesting! I would love to do something similar as part of our onboarding flow. Have you done other, what I now refer to as, pesudo-animations that you want to share?
4
u/maarzx_ Feb 08 '21
Looks great! Is the repo publicly available?
3
u/zsan99 Feb 08 '21
It's not but if you would like to have a look at some bits of the code, pm me! and thanks :)
1
4
10
u/Vasault Feb 08 '21
no way you made this a single year learning rn, i've been learning and programming with react native for year and a half, this is the most impressive app i've seen so far
2
u/zsan99 Feb 08 '21 edited Feb 09 '21
I already had notions in React Native when I started this project (didn’t go from complete noob to this in a year, sorry if the title is misleading). Thanks and good luck with your learning!
3
Feb 09 '21
You could if you came from a native app (or React web) development with a UI + UX background. No way could you do this with no development or design experience.
4
u/ahartzog Feb 09 '21
Yeah the main thing is it seems borderline impossible that in a year somebody could as a solo student create these designs, design and implement features, and all in a platform they’re learning how to work with. In their spare time.
3
u/droidshatt Feb 08 '21
How do you guys design these beautiful screens?
4
u/zsan99 Feb 09 '21
If you struggle with UI design, my key advice would be to keep it simple. Also, use Figma! It's awesome
2
u/hackerhgl iOS & Android Feb 08 '21
It's beautiful, unlucky me can't experience it on android. Why not upload on play store as well ?
7
u/zsan99 Feb 08 '21
Thanks! And sorry - some annoying stuff need fixing for Android (shadows, some libraries, some modals popping up randomly, fontWeight 600 not working...) and I haven't invested the time to do that just yet.
7
u/moufoo Feb 08 '21
Yep, font weight on Android is broken. It only gets Regular and Bold.
Use the font name+suffix as a font family instead such as "MyFont-light.ttf"
1
1
u/godsknowledge Feb 09 '21
Please make a post on your profile once it's released on Android
1
2
u/freshbanks3131 Feb 08 '21
How was the development experience using react native? For me it still doesnt feel mature enough. You always need some third party libs, which is very frustrating.
1
u/zsan99 Feb 09 '21
I'm a big fan of React Native. Once you're used to the way it works, it's a very smooth development experience.
3
2
5
u/mildfuzz2 Feb 08 '21
Exactly what I am after. But android 😭
3
u/Pandoso01 Mar 05 '21
I'm curious as to why did he decided not to publish on Android
Isn't that one of the draws of platform agnostic frameworks like react native
1
u/JuriJurka Feb 08 '21
u use push notifications ios for ios. what do you use for android? why you didn't use firebase for ios notification?
btw awesome app! i gave u 5 stars
2
u/zsan99 Feb 09 '21
I use react-native-push-notifications which works for both Android and iOS. Thanks a lot for the review! It's super helpful.
1
u/WSBThetaOverlord69 Feb 08 '21
How did you get the status bar to change from the basic one to a custom one? I can’t find any fix on the internet
2
u/zsan99 Feb 09 '21
Do you mean changing the color from white to black? You can control that with the StatusBar component.
1
u/WSBThetaOverlord69 Feb 09 '21
I tried using status bar, but with navigation the basic top part doesn’t change
2
1
u/ClumpsyPenguin Feb 08 '21
Any chance you will make this open-source ? I would love to look into the code of such this project.
1
1
u/moneckew Feb 08 '21
Hey man!
I developed https://moodflow.co. One pain point im trying to solve are notifications.
Are you creating notifications locally or are they sent from the server?
Awesome work!
1
1
1
1
1
u/emersonjsouza Feb 09 '21
Nice job, the ui is very beautiful. I tried to sign with google, but I got an error. 😭
2
1
u/itsabout2bedone Feb 09 '21
Super awesome App. Was this app built under the expo Managed workflow or did you eject to Bare workflow for more flexibility? Also do you have any tips on getting these awesome graphic assets? I have no idea where to look!
2
u/zsan99 Feb 09 '21
2
u/itsabout2bedone Feb 09 '21
Cool thanks for the resources. So without expo you do all the iOS and config files yourself? I feel like that could be a heavy learning curve. What was your experience with that? I have mine managed by expo, it simplifies things but really sets limitations on hitting the native API
1
u/zsan99 Feb 11 '21
Never had real issues on that side, its a well documented topic and there are plenty of tutorials out there :)
1
1
1
u/janithaR Feb 09 '21
Does welldone-software/why-did-you-render give you any additional benefit over Flipper's similar functionality?
1
1
1
1
u/--huachuma-- Feb 09 '21
I would love to try it out, but can't seem to find it in my country app store. Did you release it worldwide or just USA?
1
u/zsan99 Feb 09 '21
Weird, it should be available worldwide. In what country are you in? (you can let me know by PM if you prefer)
2
1
u/pessimisticLord Feb 09 '21
Hey, the app looks amazing. Wanted something like this for a while now. The screen seems to flash when I open my daily report though, otherwise looks super cool.
Loved the guides that show up the first time. Curious about how you built it.
2
u/zsan99 Feb 09 '21
Thanks. Will look into this issue, thanks for reporting.
The guides are modals that show on first open. The "shouldShow" variable is stored in a persisted redux store. Pm me if you need more info!
1
u/Electrical-Ad-4127 Feb 11 '21
Was that a native <Modal> from react native or `react-native-modal` ?
2
1
1
1
u/theSilence2 Feb 09 '21
Great job! May ask you how did you make the bar graph in the top? Also how did you implement that colorful header?
1
u/zsan99 Feb 11 '21
Bar graph at the top is custom made, the colorful header is just a LinearGradient from react-native-linear-gradient
1
1
u/Puzzleheaded_End_148 Feb 09 '21
The UI is really awesome. It looks like you got experience with a ton of functionality! Super impressive.
1
1
1
u/JohnWangDoe Feb 09 '21
How long did it take you to implement?
1
u/zsan99 Feb 11 '21
Approx 1 year part time
1
u/JohnWangDoe Feb 13 '21
Congrats on finishing the marathon. Your polish is inspiring me to finish on that level
1
u/cesar3030 Feb 10 '21 edited Feb 10 '21
Really nice job! I love the UI 👏
Maybe I missed it from the list you shared but do you use a library for the bottom sheet or did you implemented it yourself?
2
1
Feb 11 '21
Cool, how did you learn RN, Did you follow any tutorials/courses before building this, or just docs, Trail and error methods.
1
3
u/omar_joe Feb 08 '21
Nice job! Glad to see an example that’s not always Expo and pure React Native.
2
u/topdevelopersbiz Feb 09 '21
Hey thank you so much for sharing great information it’s very helpful for me
1
u/reberthkss Feb 09 '21
oh, that's awesome! Congratulations!!! I am developing one app to make surveys like survey monkey or google forms. It's a multiplatform app with Web app and Android App (for gathering answers surveying people in the street). I'm developing using firebase, react and native android (kotlin). Check out => https://answeranything-ce6e4.web.app/
0
u/itsabout2bedone Feb 09 '21
This is awesome! At what stage did you upload to the IOS App Store? What was your process for that and how painful was it? I have a very early prototype app and wondering how the future looks for deployment.
3
u/zsan99 Feb 09 '21
Thanks!
Uploaded it to the App Store as soon as the app was "usable". By that I mean no major bugs and a viable initial set of features. Best way is to start by setting up a TestFlight beta and sharing it around to your friends.
0
Feb 09 '21
[deleted]
1
u/zsan99 Feb 09 '21
You can still use the app without sharing your progress with anyone. This being said, you still need to create an account. Sorry!
And thank you!
33
u/zsan99 Feb 08 '21 edited Feb 08 '21
To sum up what's in the video: Keystone is a habit tracker combined with a social platform where you can track your habits and share your progress with your friends (the sharing part happens automatically). The idea is to leverage social accountability and social gratification (i.e, social attention, social acceptance...) as motivational forces for building healthy habits & breaking bad ones.
I built it mainly out of personal need, I've been using it with a few friends for some months now and thought it could be useful for others too!
If you want to give it a try (it's free, iOS only): https://apps.apple.com/us/app/keystone-social-habit-tracker/id1493561606
If you don't care about the app but are intrigued by the science of habit formation, this book is great: Atomic Habits by James Clear.
Stack: React Native + Firebase
Huge thanks to the people behind these amazing libraries:
invertase/react-native-apple-authentication
react-native-community/
async-storage
cameraroll
checkbox
clipboard
datetimepicker
google-signin
push-notification-ios
react-native-firebase/
analytics
app
auth
crashlytics
dynamic-links
firestore
functions
messaging
storage
welldone-software/why-did-you-render
javascript-time-ago
react-native-3dcube-navigation
react-native-calendars
react-native-camera
react-native-chart-kit
react-native-clean-project
react-native-code-push
react-native-draggable-flatlist
react-native-emoji-selector
react-native-fast-image
react-native-gesture-handler
react-native-giphy
react-native-haptic-feedback
react-native-in-app-review
react-native-linear-gradient
react-native-modal
react-native-normalize
react-native-push-notification
react-native-reanimated
react-native-screens
react-native-share
react-native-splash-screen
react-native-svg
react-native-webview
react-navigation
react-redux
redux
redux-persist