r/reactnative • u/VanaticalDesign iOS • Jan 25 '19
After falling in love with React Native less than a year ago, here's my first project, Tour, a drag-drop-based travel planning app. (iOS beta link in comments)
10
u/LordRaiders Jan 25 '19
Looks good. What did you use to make the animations and get the activities?
9
u/VanaticalDesign iOS Jan 25 '19
Animations are mostly plain Animated.Value that interpolate the scroll offset. Some of the fade in animations I use react-native-animatable. Really simple and easy to use api. If by getting the activities you mean where I source the data from? I use Foursquare's Places Api. They're very pricey but after playing with others like Sygic Travel's and Google's, none of them compare in search accuracy and quality to Foursquare's.
6
u/bhardman86 iOS & Android Jan 25 '19
I like it.
Few things. (0.5.0)
• When creating a new trip the transition after pressing the plus button is very delayed.
• when inside a trip screen pressing down hard on the destination and swiping up or down will crash the app.
• selecting destinations there seems to be a padding/margin issue between the list and the header (I’m using an iPhone 8)
Really cool app though. Can’t wait to see the final product. Good job.
6
u/VanaticalDesign iOS Jan 26 '19
I looked into it,
That's caused by my old code that generates a the calendar dates using Moment.js. It's extremely slow and I'll look to improve it soon.
Ah, I tried that with debug mode enabled and it looks like a bug caused by something onPanResponderRelease. Thanks!
Thanks! I added everything to my list of bugs to fix for the next version. Currently working on adding hotel booking integration.
2
u/mdabla Jan 26 '19
Also just pressing softly on the destination and swiping quickly up or down causes the app to crash, great app btw <3
1
u/numagames iOS & Android Jan 28 '19
date-fns is small and performant alternative to moment.js which You can consider for replacing...
6
u/Ecvk Jan 25 '19
This looks SUPER GOOD! Did you manually code all these components?
I'm just starting out with react/react.native but I can't code something that looks this good, any tips on how to make a good UI/UX? perhaps guidelines or design tips?
10
u/VanaticalDesign iOS Jan 25 '19
Thanks! Yes I'd say 95-99% of the components are all manually coded. I wanted full control over how everything behaved, I feel every little touch adds to the UX.
Tips on a good UI/UX? Design wise, I go on Dribbble, look at all the top designs and analyze what makes it look pretty. UX wise I try to keep everything as simple as possible, and try to use conventional means of interaction as that's what the user is intuitively used to.
5
u/alien3d Jan 26 '19
that is the real answer of developer " I wanted full control over how everything behaved"
3
u/Antifaith Jan 25 '19
Looks good, can’t sign up with email though?
Just get a somethings wrong message
1
u/VanaticalDesign iOS Jan 25 '19
Hmm, mind if you can PM me the info that you inputted for the signup (other than the password of course). I'll look into it ASAP.
1
3
u/JStheoriginal Jan 26 '19
Nice job on it!
I noticed that when I tap on a city, the transition to the details screen is abrupt, likely caused by that pin animation.
If you use this API on component did mount of the details screen, you could maybe improve that by delaying it.
https://facebook.github.io/react-native/docs/interactionmanager
Cheers!
1
2
u/moolfa Jan 25 '19
that's incredible. such a wow. is this open source?
4
u/VanaticalDesign iOS Jan 26 '19
Sorry but it isn't; its a startup I'm doing with one of my best friends. I'm considering open-sourcing a lot of the components that I made for it though.
2
u/shivawu Jan 25 '19
OMG, this looks absolutely AMAZING! The animation looks so great, and the functionalities are very rich too! It's basically a trip app ready to go!
1
u/VanaticalDesign iOS Jan 26 '19
Thanks! I'm working hard on adding integrated hotel booking at the moment. Flights coming soon too.
2
u/matt_hammond iOS & Android Jan 25 '19
How long did it take to code it all up?
3
u/VanaticalDesign iOS Jan 26 '19
So far, 6 months. I started out in July. It wouldn't have taken as long though if I was more experienced, I lost most of my time in the latter parts to completely rebuilding stuff from scratch, removing my earlier, worse code.
2
u/jamonholmgren Jan 25 '19
Great job. Did you use any debugging tools like Reactotron during development? What was your workflow like?
4
u/VanaticalDesign iOS Jan 26 '19
No I haven't, Reactotron looks very interesting though, will look into using it. For my debugging workflow I use console.logs to the Chrome Console, and React devtools. I'm very new to software development as a whole, if you could have any pointers to how to streamline and improve my workflow, that would be great!
3
1
2
u/crobinson42 iOS & Android Jan 25 '19
How about drag and drop? What did you use there and do you have any gotchas or tips for others?
4
u/VanaticalDesign iOS Jan 26 '19
The drag and drop is basically, run by 'broadcasting' the Animated.Value of the yPosition on the screen of the finger touch to redux, and every 'Dropzone' attaching a listener to the value, and calling a function to expand and shrink the Dragger component. Tips... well you wouldn't get a lot of things right on the first try, take what you created and keep improving them. A lot of my components at first were really slow and buggy, the Dragger for example used to lag and jump all over the place, I continually improved it as I improved my own skills and learned more.
2
u/mezzie Jan 25 '19
hey i love it! any plans of open sourcing it?
7
u/VanaticalDesign iOS Jan 26 '19
No, sorry, I can't open source the whole thing as it's for a startup I'm doing with my best friend. Although, I'm looking to open source a lot of the components I created, and am open to showing snippets of the source code if people request it.
2
u/Noitidart2 Jan 26 '19
I'm curious to learn how you did that pinch resize thing in a list. Is that inside a FlatList?
2
u/VanaticalDesign iOS Jan 26 '19
Close, its inside a SectionList, with each of the days in its own section. The pinch/slider resize works using a PanResponder on the slider component that adjusts the duration of the activity and its neighbors once you move your touch.
1
2
u/Serundeng Jan 26 '19
This looks great! How did you do the gradient / fade to transparent over the map?
1
u/VanaticalDesign iOS Jan 26 '19
react-native-svg a LinearGradient, positioned above a View with backgroundColor.
2
2
Jan 26 '19
Congrats, the app looks really great! 🔥🔥🔥
I have used Google Trips for my latest holiday, but it doesn't offer all the features your app offers.
The possibility to plan every day in detail and see the map in real-time is very nice 👍
Some ideas came to mind while watching:
🔸 A feature to discover places on or near the planned trip would be cool 🔸 maybe you can integrate some text information for places and monuments from wikipedia 🔸 It would be great to download the map and use it offline for navigation with GPS only
Hope you create the android version soon, so I can use this for my next vacation. 🙌
Technical question: did you used something like styled-components to design the elements, or did you put everything in a seperate css file?
Thank you for sharing this. And again: outstanding work! You might have created something that could change your life! This could take off 💪
1
u/VanaticalDesign iOS Jan 26 '19
Thanks!
I'm actually adding nearby place discovery via map 2 major updates from now. Text information I would love that, but I would have to talk with Foursquare on that, they might not like us combining their data from data from somewhere else. Offline mode is a must too.
Yes, I used styled components.
In the end, that is basically what I wanted to do with this app, changed the way people plan their travel. I always thought it was a gigantic pain point in the market that no one was considering, there are way way way too many hotel/flight booking apps/websites but no one fixes this core problem.
2
u/evanshmevan Jan 26 '19
How much do you make use of codepush? I run codepush in my react native app, but I usually end up doing app releases instead. I’m wondering if you think it’s worth it to implement codepush.
2
u/VanaticalDesign iOS Jan 26 '19
Quite a lot actually. It allows me to do quick fixes to bugs without having to wait for (currently) App Store review that takes a couple days.
2
u/stathisntonas Jan 26 '19
I really love the “drop here” button and the way it iteracts with the list, it would be great to open source it.
2
u/VanaticalDesign iOS Jan 26 '19
I'll look open source it, and a ton of other components soon once I finish the app store release.
1
2
u/comicstix Jan 26 '19
The app is gorgeous! Great job.
Suggestion for a future version: the ability to share trips with friends and allow them to make changes. Maybe also a comment functionality on trip changes.
1
u/VanaticalDesign iOS Jan 26 '19
Thanks!
Yep, that's in our roadmap. Sharing trips with friends, group trips, and a 'tour guide' mode, where a 'guide' can create a group with tour members, and send plans to everyone.
2
Jan 26 '19
Nice work! What technique do you use for syncing Firebase/Firestore with the redux state? Some lib, or sth. like redux-saga?
1
u/VanaticalDesign iOS Jan 26 '19
I tried redux-saga a while back when I was still starting off Tour, and it felt a bit confusing and difficult to learn for me, so everything is run off of redux-thunk. For example, the planner runs on a listener that listens to the 'plans' subcollection of a destination, and on each update it dispatches a new version of the 'plans' array to the redux store.
2
u/udfalkso Jan 26 '19
This looks really well done. I've often thought of building some thing similar. Good luck!!
1
u/udfalkso Jan 26 '19 edited Jan 26 '19
Are you paying for mapbox? Are you using that via react-native-maps? How does that work? Any specific reason you chose them over google/apple maps? Just aesthetics? Thanks!
2
u/VanaticalDesign iOS Jan 26 '19
Mapbox, for a start, their pricing is way nicer than Google maps. ($0.50 per 500 monthly active users!). Aesthetics wise, I love the ability to style every little detail of the map to our brand's design unlike Google Maps/react-native-maps sdk. It stems from the same reason that I code almost every component from scratch, I want full control of how the user interface and user experience behaves. That, to me is Mapbox's biggest advantage.
1
u/maxtime23 Jan 25 '19
Wow, well done! Really impressive, especially the drag and drop stuff! I get a bug when trying to adjust the timing of certain activities though. As soon as I scroll down to see the details of an activity, I am not able to choose a different starting time for that activity, the picker for selecting the time does not respond. It only works when the scrollview is scrolled all the way to the top. iPhone 7 latest OS
3
u/VanaticalDesign iOS Jan 25 '19 edited Jan 25 '19
Thanks! I looked into it. The header is absolutely positioned and animated as an interpolation of the scrollOffset and doesn't actually scroll alongside everything else. I forgot to set pointerEvents to 'box-none.' will fix ASAP.
EDIT:
Code pushed a fix.
1
u/petertheill Jan 25 '19
Looks really promising but I couldn't pick a travel mode when creating a new trip?
1
u/VanaticalDesign iOS Jan 25 '19
Sorry about that, I'm adding it in an upcoming version. Need to support flights and hook up to a flight ticket booking api.
1
u/petertheill Jan 25 '19
Got it. Did you do both code, ux and gfx?
1
u/VanaticalDesign iOS Jan 25 '19
Yes, completely developed the product on my own with input and some UX work from my partner who's the marketing guy.
1
1
u/ohgawwd Jan 25 '19
Man this app is great! What’s your progress with getting it into the App Store?
2
u/VanaticalDesign iOS Jan 25 '19
Thanks! I want to add two more major features before I do the app store push: in-app Hotel booking and travel/transit. Basically this means you can book hotels in app, and it’ll add it to your plans automatically, meaning you can find things relative to your hotel, along with various transit/transport methods to those activities.
1
u/Tynzo Jan 25 '19
Hey,
Loving the app ! We’re working on a project that requires the same « pull down to stretch image while being a carousel » kind of feature that you used on destination page, would it be possible for you to point us in the right direction ?
Thanks!
6
u/VanaticalDesign iOS Jan 26 '19
Thanks! To put it frankly, it's a ScrollView that's wrapped by an Animated.View with a PanResponder. When 'anchored' at the bottom (map view) the ScrollView is disabled and the swipe up is handled by the PanResponder. When 'anchored' at the top (full screen) it is just a function passed as a prop to onScrollEndDrag that listens for a threshold in the yOffset. If you'd like I could post the source code for that.
1
u/Tynzo Jan 26 '19
Hey man, yeah I’d love the source code for that please ! Why don’t we make it a react native library? It’s a really useful and needed component.
2
u/mdabla Jan 26 '19
You can try react-native-stretchy as well https://github.com/hamidhadi/react-native-stretchy
3
u/Tynzo Jan 26 '19
Hey, thanks. I tried it before but I couldn’t use it with a carousel...
2
1
u/xrpinsider Admin Jan 25 '19
Great app! Did you follow any Firebase/Firestore React Native tutorials? Can you share which ones you followed, if you did?
Thanks for sharing!
2
u/VanaticalDesign iOS Jan 26 '19
Thanks! For Firebase/Firestore, I felt that the JS documentation on their site was incredibly detailed and easy to understand, most if not the entire React Native Firebase API is the exact same as the vanilla JS one. https://firebase.google.com/docs/firestore/manage-data/add-data
1
u/webmastervallak Jan 29 '19
Finally got to try out the beta version, the beta link kept not recognising that the TestFlight app was installed. The funny thing is, that I was actually looking for an app like this, since I'm traveling at the moment.
Im a huge fan of the react-native/redux/firebase stack. I've done a couple of personal projects myself with the stack. It really works well together.
Awesome overall experience! Very nice attention to detail. Did you design the views yourself, or did you have a UX-designer on it?
The animations look amazing as well, I really have to look into how animations are made, and how they are made to look this smooth.
I do have a couple of comments:
I had a problem with "login with facebook" it didn't respond the first time i tried login in. Unfortunately, i didn't get an error message. It worked in the end, after a couple of retries.
The amount of information in the "choose reataurant"-list, a user has to consider and make choices from, is very overwhelming and very under-explained. I.E. I tried to figure out where i should go to dinner tonight, and there is way to many possibilities without any detail?
Kudos guys, you have a great understanding of the problem domain, and the tool you propose looks awesome.
1
u/VanaticalDesign iOS Jan 29 '19
The stack really does work like magic once you get the hang of it. It was a bit rough for me at first, trying to get an efficient data flow from firestore to redux, but now it works like a charm.
And yes, I designed the whole UI/UX myself, with some input from /u/2001kraft.
The animations mostly run on interpolations of the ScrollOffset with the nativeDriver enabled and some 'illusions' using opacity/fading tricks. I'm looking to open source some of the components and maybe code some handy stuff here and there. I'll def post it on Reddit though and maybe that'll help you out.
On your comments, I've had quite a lot of people inform me of the bugs on login before, especially the ambiguous error messages or lack of them altogether. I've placed it in our roadmap and will get to work on it ASAP. For the information, there's actually a lot more information available to display that Foursqure provides us, but I haven't had the chance to completely implement/show all of them yet, I may have rushed it quite a bit haha. I'm currently designing a redesign of the activity discovery/explore screen atm where it'll suggest nearby activities according to your existing plans and location.
And thank you, we'll do our best to make this app as great as possible and hope release v1.0 coming late February does not disappoint.
1
u/Shu7Down Jan 30 '19
Hey! Just WOW! Where do you start learning react & react native?
Congratss
2
u/VanaticalDesign iOS Jan 30 '19
I started with a course on Treehouse and basically moved fast and broke things from there.
1
Feb 01 '19
What resources did you use to study ui/ux?
1
u/VanaticalDesign iOS Feb 01 '19
I got inspiration off of Dribbble, and read a ton of UX blogs such as https://uxplanet.org.
1
Feb 02 '19
What tools did you use to create your graphics?
1
u/VanaticalDesign iOS Feb 03 '19
Some of them were bought off of UI8.net, and I make all the ones that I do make in Sketch. I also edit most of the bought ones in sketch too. I love the ability to export the raw SVG code right out of sketch.
1
u/CoffeeVacuum Feb 12 '19
Would love to get my hands on this. Android version coming soon?
1
u/VanaticalDesign iOS Feb 13 '19
Yes, once after the iOS version is released on the app store we are looking to start work on an android release.
1
u/ilsx2 May 05 '19
Nice job.. perfect UI.. i tested the app.. there are some small bugs.. where to report them ? Good luck
1
3
1
Jan 26 '19
I shouldn’t have to have location on to use the app. It currently asks me to send a bug report if I decline location. Then it crashes if I hit the plus button on the new trip screen. Looks promising though. Can’t wait to use it.
2
u/VanaticalDesign iOS Jan 26 '19
I agree with that, if I were using someone’s else’s app and they forced location it would be a red flag. I originally enabled it so it can find the source for flights earlier, forgot to disable it before pushing prod.
2
2
2
2
u/pcarion Jan 26 '19
Nice app, congratulations!
A weird behavior to report though: when on the trip/main page, the back button shows a popup "Are you sure you want to delete this trip?" .. this is really confusing - you should indicate that the user should first save his trip
When you select a predefined destination (North America), the list is cut off at the end (cannot select New York)
1
u/2001kraft Jan 26 '19
Which iOS version do you have?
1
u/pcarion Jan 29 '19
iOS 12.1.3
iPhone 8 plus
1
u/2001kraft Jan 29 '19
Seems to be an optimization error. We’ll fix it in the next update. Thanks for the heads up!
2
u/vinsanity555 Jan 26 '19
Looks incredible, can't wait to use it!! What did you use for navigating between views? Any of the (many) nav libraries out there? Or did you roll out your own?
2
u/dasuisaman Jan 26 '19
this is really nice, man!! Hope someday I’ll be able to make such a cool app using react-native. I’m currently starting to learn, but seeing what you achieved keeps me motivated. Good job!!
2
u/denisinla Jan 26 '19
Hmm perhaps setting up authentication for Google as well since theres no way in hell I'd use FB anymore.
1
u/2001kraft Jan 26 '19
Hi, I am /u/VanaticalDesign 's partner.
You can register just by using an email and custom password. We will expand to include other social media in the near future (I don't like Facebook either lol).
1
0
Jan 26 '19
[deleted]
1
u/VanaticalDesign iOS Jan 26 '19
No, this is a full
react native initapp that doesn't use Expo. And yes, native modules include Mapbox, React-Native Firebase, and CodePush.
0
3
Jan 25 '19
[removed] — view removed comment
6
u/VanaticalDesign iOS Jan 25 '19
Thank you! Yes, most of the components are all made from scratch. The ones that aren't are stuff like Mapbox's map, and animatable components. I'm actually considering open-sourcing some of the components that I made for the app sometime soon. Really in a rush to get it out on the app store that I'm starting to trip over myself.
2
Jan 26 '19
[removed] — view removed comment
2
u/VanaticalDesign iOS Jan 26 '19
The setup was pretty fine for me, although the only problem I faced was getting familiar with firestore's data structure and fitting it to my use cases, ie should this be an array stored in a document or a subcollection. What was annoying about the setup for you?
44
u/VanaticalDesign iOS Jan 25 '19 edited Jan 26 '19
This came out of my own annoyance of planning trips, I book a flight, hotel, and then find things to do, but where do I put it all together? A google doc? notes? calendar? I looked to the app store and I felt that a lot of the popular trip planning apps had horrible UI/UX. Tripit, Sygic Travel, Google Trips, etc the lot.
So I came up with this drag-drop interface with the goal of eliminating the annoying manual entry of activities that plagued Tripit.
I had tinkered around with React/React Native a couple times before, and thought this would be a great project to give it a test run. Anyways, do give the beta a try, and any feedback is greatly appreciated! This is my first React Native app and I’m eager to improve.
tourapp.co/beta
EDIT:
If anyone's curious about the stack:
Backend: Firebase.
Db: Firebase Firestore.
Store: Redux.
Maps: Mapbox.
Navigation: React-Navigation.
Updates: Code-push
EDIT #2:
Wow, just wow. Thank you so much /r/reactnative I thought I would get like 20 upvotes at most, but top post of all time? Just.. damn... I'm just completely dumbfounded and really excited to make Tour happen. I'll make sure to make Tour's release as amazing as possible. See you again soon.