r/reactnative • u/pie6k • Jan 27 '20
I finally released my first 'real' app made in React Native!
32
u/justAKidSeekingGod Jan 27 '20
Seems Pretty much cool, awesome job mate
8
u/pie6k Jan 27 '20
Thanks!
9
u/justAKidSeekingGod Jan 27 '20
Is the source public??
24
u/pie6k Jan 27 '20
No, but I'm going to release previous versions of it open-source as well as a lot of 'libs' I've created during the process (animations, internationalization, state managment etc)
7
u/justAKidSeekingGod Jan 27 '20
Glad to know that... Please share the links if open sourced, would love to see the structure and maintenance within ;)
27
u/Jeffylew77 Jan 27 '20
Design looks really good! One of the better looking apps I’ve seen posted on here. What kind of stack and libraries (such as the charts/graphs) are you using and how long did the project take?
17
u/pie6k Jan 27 '20
Graphs are just styled views, there is no custom drawing happening there. Most of the stuff is custom. I use react native gesture handler for performant interactions and bunch of libs for native integrations (like calendar/reminders access, facebook auth, apple auth etc).
It took me around 6 months.
6
u/smccullochf5 Jan 27 '20
That scrollable day selector is cool - is that custom?
10
u/pie6k Jan 27 '20
Well, that was pretty tricky to create and it's fully custom. I'll probably release it as open source, but it's quite deeply integrated into other app specific things such as showing tasks count on days, so I'll have to 'extract' it
1
u/SuccessLuthor May 28 '20
Did you open Source it yet ? I am new in RN, and was thinking that I could try new things... P.S: Can I get your icon pack pls ? It looks super Slick...
2
u/pie6k May 28 '20
Didn't open source it yet. Icons are from streamline icons and feather icons pack :)
2
2
u/smccullochf5 Jan 27 '20
I've created something similar in the past - was just curious if it was a third party component
2
1
6
u/vladstart1 Jan 27 '20
You got 5 stars from me in App Store. Man you did a great job with this app(saying as react native developer)
1
u/pie6k Jan 27 '20
Thanks so much! Let me know if you have any questions and show me your apps! I’d love to check them out
4
3
u/thenate113 Feb 03 '20
How did you get dark mode working with react-native-navigation? I'm struggling right now to detect what mode the user has selected. I see you're using react-native-dark-mode, but I cant get it to work.
4
u/pie6k Feb 03 '20
I'm using styled components with theme provider. Theme provider is at root of every screen and current theme is selected basing on if user has dark mode enabled. Now inside every styled component in the app I can use a function in string template like ${s=>s.theme.something}.
This is mostly how it's working.
2
2
u/amir129 Jan 27 '20
Can you share your package.json library stack. What library you use for animation
3
u/pie6k Jan 28 '20
I use LayoutAnimation for most of the animations with `springDamping: 2` in the config and then I `scheduleNext` with this config before every state change.
Deps: https://gist.github.com/pie6k/7e5b302dea4119f4be1f735a69581496
2
u/exentrich Jan 27 '20
I’m curious how you did sortable list? Very smooth! Really impressing app as well! Please open source your app, it’s definitely worth checking out for all RN developers.
Btw I’m developer of Raindrop.io, we open sourced our RN app https://github.com/raindropio/mobile
6
u/pie6k Jan 28 '20
Sorting was probably the hardest thing... A lot of logic and hacking happening there. I'll open source sortable somewhere soon.
It'll be hard to describe everything in short reply. I think I'll write some medium tutorial too.
In general:
using react-native-gesture-handler so I can prevent main scrollview from scrolling while you're dragging down/up
using long press gesture handler for actually managing move event, as this is the only one that allows long press to drag (https://github.com/software-mansion/react-native-gesture-handler/issues/445 - people have a lot of issues with normal PanResponder)
when you start dragging, I measure layout of all other items
As I know all absolute positions, I can know when your touch 'enters' any of other items
Then I calculate new 'order' when you enter any of those and I add special placeholder above or below entered item depending on if dragged item was after or before
I use LayoutAnimation to add/remove placeholder with animation
then when you stop your touch I see if order changed and I modify local state so order is 'published' instantly
I animate your touch position to 0 with animated.spring
I publish new order to db
18
u/J27G Jan 27 '20
I'm always jealous of people who can both design and code. It looks fantastic, congrats.
1
u/Nedbow Jan 27 '20
Good job! Awesome! Can you give me an advice about a modal view presenter? It’s appear when I click on the tag link. The view looks like a default swiftUI presenter. How did you do that using React Native?
2
u/pie6k Jan 27 '20
I'm using react-native-navigation from wix.
It has an option to show modal using native modal presentation style.
1
u/jacobp100 Jan 28 '20
Just to give another answer, this can be done via the Modal component in standard RN using presentationStyle=pageSheet
1
u/a_cam_on_the_dash Jan 27 '20
the animations look so fluid! would you mind sharing what you used to accomplish this? one of my weak points right now is animating.
4
u/pie6k Jan 28 '20
For most of the animations I actually use LayoutAnimation of react-native. If you don't use it, check it out quickly.
Config of it is
`**{**
springDamping: 2,
property: LayoutAnimation.Properties.opacity,
type: LayoutAnimation.Types.spring,
}`And then I use special hook called `useAnimatedState` instead of `useState` that work just like normal useState, but calls RN `LayoutAnimation.configureNext` BEFORE calling `setState`.
1
u/Nemeesiis68 Jan 27 '20
Looks awesome !! I would like to be added in the list for the Android app if it's possible 🙏
1
1
u/numice Jan 27 '20
Seems like you use native modules here as well so I imagine that you don't use expo or?
1
u/pie6k Jan 28 '20
No expo :)
At some point, if you start to customize more, it's become a pain to still use Expo :)
1
u/readitron Jan 28 '20 edited Jan 28 '20
so sick! downloaded! thanks for sharing. everything is beautiful!
are you the only developer on this? or do you have other people with you? you've done a lot if you were on your own!
having issues with enable online sync tho. found some other issues too, i can message it to you if you want.
1
u/pie6k Jan 28 '20
95% of the work is made by me. I was designer for few years before, so thankfully I was also able to design it.
I've got a friend who is helping me with some iOS related stuff as he was iOS native dev in the past. He'll also help me develop Watch app.
Please PM me with your online sync issue and other issues. I'd love to hear about that
1
u/Domzegrom Jan 28 '20
This is awesome! I love your design and work it looks great!
What were some of your biggest hurdles when developing and launching this app?
Likewise what things did you wish you spent less time on and more time on?
Your feedback would be super helpful for my app development! Thanks for your post! Inspiring!
3
u/pie6k Jan 28 '20
Sorting! This was pain in the ass.
But in the long term. I'd say the hardest part is creating proper architecture. If you mess in the beginning, it's slowing you down in the future to the point you can't continue.
As I said, I've created 2 versions of this app in last years. One was using GraphQL and now I think it was a mistake. There are so many inner data dependencies.. If you edit task, it might appear/disappear in many other places. Finally I switched to firebase and I enjoy it.
Also, setting good layer of abstraction over navigation is very important. I've got over 20 screens. Many of them can open in more than one place.
About spending my time.
I spent a lot of time polishing UI. And propably many people would not even notice many small details. I'm perfectionist and sometimes it's bad. I've 'lost' a lot of time on that. Sometimes I think it's bad, but on the other hand - I enjoy it. I like creating beautiful UI, so I started to think lately, that it's good. Maybe it's not the most productive thing in the world, maybe it's against Agile MVP philosopy, but I thought 'I enjoy it, period.'.
1
u/JJakk10 Jan 28 '20
Howd you get the UI to look so good. The apps I'm working on only have the default styles
1
1
1
u/marius4896 Jan 28 '20
great job ! cool ui, cool accessibility implementation. i kinda was put off by the drag actions initially, but then they grew on me. can you please share some insights on the animations and transitions used?
1
1
u/Nikosssgr Jan 28 '20
Very nice! Looking forward for android. Which apps were your design inspiration?
2
u/pie6k Jan 28 '20
I don't have any concrete example. In general here is collection of design UI I liked and collected over the years: https://dribbble.com/timpler/buckets/281739-Calendar
1
u/Chawki_ Android Jan 28 '20
Awesome, and how did you record that screen record? What SW you use?
2
u/pie6k Jan 28 '20
I've added simple wrapper in React that shows circle wherever I tap and used `xcrun simctl io booted recordVideo timpler.mov` command on Mac to record from simulator
1
1
1
u/NCostello73 Jan 30 '20
Downloaded and reviewed 5 stars. This looks great will update in a week.
1
u/pie6k Jan 30 '20
Thank you! Some interesting features are coming in next few days (grocery lists, todoist import, swipe to delete)
1
u/NewBieBR Jan 30 '20
Great job! What did you use for the picture-in-picture, the shadow effect and the border radius?
1
u/pie6k Jan 30 '20
What do you mean by picture in picture?
Border radius is simply achieved with shadow styles of react native and borderRadius style property. Only thing to keep in mind when adding shadows - it requires given view to have non-transparent background to be performant
1
u/NewBieBR Feb 02 '20
Oh I mean The boder radius and the shadow of the app preview on the background. That is picture in picture
2
2
2
2
2
2
2
u/marius4896 Jan 31 '20
On pull i expect refresh. I understand that chrome has this behavior, but even they have the middle peace as refresh as well. when i saw the actions in the app i kinda has to stop to think about what i was doing and that is not good.
2
u/nofaceD3 Mar 27 '20
Really beautifully designed app. How do people make such a beautiful ui? When I design app it doesn't feel good like this 🤷🏻♂️
1
u/ahavaaa Jan 28 '20
This is so cool 😭 Got any practical starter tips for a newbie like me? I'm supposed to create an app for work but I'm manually coding the ui components of cards. I feel theres any easy way of doing this, using existing libraries. Pls help. someone?
1
1
1
1
u/Alpha_Supreme Jan 28 '20
Looks dope. I want start with react native. I know HTML, CSS and little bit of JavaScript. Where should I start?
1
u/Alpha_Supreme Jan 28 '20
Looks dope. I want start with react native. I know HTML, CSS and little bit of JavaScript. Where should I start?
1
u/Alpha_Supreme Jan 28 '20
Looks dope. I want start with react native. I know HTML, CSS and little bit of JavaScript. Where should I start?
1
1
1
1
1
1
u/Sl1c Jan 29 '20
Really nice design! Would love to see some sourcecode as I‘m starting with something now and i could use some help 😄
1
1
u/theSoftwareDev95 Mar 26 '20
This looks awesome! I’m working on my first real app anyway you could take a look at my code and help me out?
I just have a couple questions.
1
u/Red3nzo Jan 27 '20
I'm new to react native but does the app perform like a native application? Will it be as fluid feeling as a real iOS app?
2
0
Jan 27 '20
[deleted]
3
u/pie6k Jan 28 '20
I've used final cut pro. Actually, creating rounded corners in FCP is way harder than you might think. I thought I'll throw my laptop. There is even paid plugin that just does that.
I finally figured it out.
So
You add solid with some background
You add your video and scale/move it
You add effect 'shape mask'
And here is tricky part
You can add roundness to shape mask, but as phone is not a square, rounding will not be 'circular', but it'll be stretched vertically.
So the point is to modify the mask in Shape Mask effect so it'll be a square
Then you can use option 'Convert to points' so the mask will become editable shape
Then you move 'top points' to the top edge of video and bottom points to bottom edge
Then I've added Drop Shadow effect
3
Jan 27 '20
[removed] — view removed comment
7
u/pie6k Jan 27 '20
I'll also release this as open source.
In general, I've created component called `SmartScrollView`. It's just normal scroll view, but it creates context with it's possition as animated value, as well as information if it's currently dragged or not and if it's pulled over 100px or not.
Basing on that I'm creating absolute positioned element on the top, that is showing actions. Then when you move your finger I check pageX position to select proper one as active. Then when you release your finger, I make sure scrollview was pulled enough and then I check if there was any action selected and I call it if needed.
1
34
u/pie6k Jan 27 '20 edited Jan 27 '20
My goal last year was to release my to-do/habits planner app I always wanted to create.
iOS link: https://apps.apple.com/us/app/timpler-to-do-list-planner/id1432739728
Android version will be released in ~~2 months, I've got some issues with that. (if you want, pm me and I'll let you know when it's ready)
In general, it looks like any other to-do app you know, but my main goal was for it to help you with scheduling and managing your tasks as much as possible, because often I felt overwhelmed with my tasks in the past
It can:
- automatically schedule your routines, looking for non-busy days- automatically reschedule overdue tasks- has daily and weekly tasks planner which helps you have a 'new start' after few taps- it allows you to create smart lists and add them to the main screen
and beside this:
- I've tried to make it look really clean- It's free. It was my dream for over 7 years to release it. I don't know what will happen in the future, but even if I'll introduce paid options, I'll make it free for early-adopters- It has reminders for tasks and habits- Dark Mode- Pomodoro Mode- Offline support
and quite a few other features
I've created few versions before (even back in 2015) (https://twitter.com/timplerhq/status/1216839514620121095/photo/1).
This version took me around 6 months to create, but I knew what mistakes to avoid, which was really helpful.
My stack (I'm going to open-source quite a lot of stuff I've created here):
Stack
- Typescript
- Firebase
- No 'official' store implementation. I was using my home-made 'shared state hooks' and suspense resources
Libs:
u/invertase/react-native-apple-authenticationreact-native-community/blurreact-native-community/datetimepickerreact-native-community/netinforeact-native-community/push-notification-iosreact-native-firebase/analyticsreact-native-firebase/appreact-native-firebase/authreact-native-firebase/crashlyticsreact-native-firebase/dynamic-linksreact-native-firebase/firestorereact-native-firebase/messagingreact-native-firebase/perfreact-native-firebase/remote-configreact-native-firebase/storage"react-native-calendar-events"react-native-calendar-reminders-pod"react-native-code-push"react-native-dark-mode"react-native-fast-image"react-native-fbsdk"react-native-file-share-intent"react-native-fingerprint-scanner"react-native-gesture-handler"react-native-haptic"react-native-image-picker"react-native-image-resizer"react-native-intl"react-native-keep-awake"react-native-keyboard-manager"react-native-linear-gradient"react-native-localize"react-native-mail"react-native-navigation"react-native-network-info"react-native-orientation-locker"react-native-push-notification"react-native-quick-actions"react-native-rate"react-native-reanimated"react-native-screens"react-native-spotlight-search"react-native-touch-id"react-native-vector-icons
(something broke with the list above...)
If you want to check a bit more design related stuff: https://dribbble.com/timpler/projects/1821234-Timpler
or https://twitter.com/timplerhq/
ps. If you'll use it and like it, I'll really appreciate app store reviews :)
Also, if you have ANY feedback - I'd love to hear that!