🔴 Let's build Uber 2.0 with REACT NATIVE! (Navigation, Redux, Tailwind CSS & Google Autocomplete)
Вставка
- Опубліковано 7 тра 2024
- 🚨 Join the world’s BEST developer community & course Zero to Full Stack Hero: www.papareact.com/course
🫂 Join my Community, "University of Code" for FREE: www.universityofcode.com
🔴 LOOKING FOR THE CODE? 🛠️
links.papareact.com/github
📩 Want coding problems (with solutions!) delivered to your inbox daily? www.papareact.com/dailycoding...
---
The much-anticipated build is FINALLY HERE!
Join me as I build the UBER CLONE with REACT NATIVE (yes we're building for iOS & Android!), you'll learn how to do the following in this build:
👉 Use Tailwind CSS with RN for awesome styling!
👉 Use the Google Distance Matrix API to calculate Travel time and Distance (+ Cost!)
👉 Use the Directions Google API for real navigation!
👉 Use Google Places API for real navigation!
👉 Use apple & google maps for iOS & Android
👉 Use React Native Navigation to navigate between screens!
👉 Use React Native Elements to elevate your app design!
+ SO MUCH MORE!
🎙️ PODCAST
links.papareact.com/podcast
🌍 SOCIALS:
Instagram: links.papareact.com/instagram
Facebook: links.papareact.com/facebook
LinkedIn: links.papareact.com/linkedin
Twitter: links.papareact.com/twitter
Discord: links.papareact.com/discord
Newsletter: links.papareact.com/newsletter
❤️ SUPPORT
PAPAFAM Merch: links.papareact.com/merch
Donate: links.papareact.com/donate
🕐 TIMESTAMPS:
00:00 Introduction
01:00 Build Showcase
03:26 Build Explanation
08:59 Setting up Expo
14:57 Initialising the Build
23:33 Setting up and Implementing Redux
44:01 Building the HomeScreen Component
55:41 Building the NavOptions Component
1:14:44 Implementing React Native Navigation
1:27:13 Implementing Google Autocomplete Library
2:00:34 Building the MapScreen Component
2:04:27 Building the Map Component
2:17:04 Building the RideOptionsCard Component (1/2)
2:18:33 Building the NavigateCard Component (1/2)
2:29:06 Implementing the Directions API
2:38:06 Building the NavFavourites Component
2:46:25 Implementing Keyboard Avoiding View
2:50:34 Building the NavigateCard Component (2/2)
2:57:12 Building the RideOptionsCard Component (2/2)
3:17:38 Implementing the Travel Time Calculation
3:26:13 Implementing the Price Calculation
3:32:58 Building the Menu Button
3:35:32 Bug Fixing
3:36:42 Final Build Demo
3:40:45 Outro
DISCLAIMER: This Video is made for informational and educational purposes only. We do not own or affiliate with Uber and its subsidiaries in any form. Copyright Disclaimer Under section 107 of the Copyright Act 1976, allowance is made for “fair use” of this video for educational purposes.
#reactjs #reactnative #redux #tailwindcss #tailwind
📬Do you want DAILY coding problems sent DIRECTLY to your Inbox? (with solutions the next day) 👉 links.papareact.com/university
hello sonny, i dont have any experience and knowledge in making app, can i learn about this one? do you have school? thanks
Pppp
hello sunny, in this video shown only one tab get a ride, what about uber order food??. if it done please can share video link in reply please.
@@musa7801 ط حطي يپلاؤغئع
This single video is equivalent to almost all the paid react-native courses. Thanks a lot, Sonny for sharing this and putting all your time to explain and create it so well :)
Were you able to implement google autocomplete using the google places API ?
If you are using the Android emulator to follow this tutorial you might have issues with the back button @3.02.57 ish. Evidently you could make two blunders. 1. Is to import {TouchableOpacity} from 'react-native-gesture-handler. The recommendation unless you know what you really wnat to do is to import it from import {TouchableOpacity } from 'react-native'. Once you have done that then using the absolute positioning may also cause the back button < chevron not to fire, in this case place the textbox before the TouchableOpacity component. This applies only for Android. The ecosystem is a little finicky especially with the expo wrapper, but for what you are getting it's well worth the few bumps in the road.
I was stuck on this part so thank you very much for your advice 👍
The solution also blocks navigation to NavigateCard.
Thanks a lot bro! Didn't think the comment section would become the perfect stack overflow forum lol👍
To fix the button placement you could also replace top-3 in the TouchableOpacity to bottom-2 and that should be perfect!
@@TheEliteBeats
it is a z-order issue for sure. I could have made that more clear, but didn't want to affect the look and feel too much
I've finally been able to block out the time to fully watch this video and practice along. Thank you so much for sharing your knowledge. You are amazing at breaking down new topics and making them easy to understand.
Mailman delivering once again. Can't wait to try out React Native. Thanks for dropping all this knowledge.
The way he acknowledges donations is really awesome.
THANKS !! ive been learning react native in the past 2 month and alot of my progress come from what i learned here !
love your energy and you have been 100x times more helpful than most of the react native content on youtube. thank you so much!
This stream is honestly so well done man, thank you for all your content this was so helpful for implementing a bunch of functionality in a similar app I'm building.
Got to know react due to you a year ago and now I got my first client due to you ! keep making these builds man 🔥❤️
LOVE YOUR ENERGY🔥
The error stating that setOrigin is not a function is resolved by naming the reducers object inside navSlice as "reducers" with an "s" instead of "reducer". Thank you and keep it up 👍
This comment went a very long way. Thanks a whole lot
thanks)
Thanks so much! You the best my man, had spent the last hour trying to debug this.
You're a beast, thank you
this could be easily prevented by using Typescript. Since TS yell when you mistype param name
I was waiting for this. I'm salivating...this is my moment!! You are the best....and you are changing lives!
For the ones who got the error of navSlice.origin is not a function: you probably put your reducer like this:
export const navSlice = createSlice({
name: 'nav',
initialState,
reducer: {
But when Sonny Sangha Copied his working file code and pasted it on the navSlice
The reducer looks like this now:
export const navSlice = createSlice({
name: 'nav',
initialState,
reducers: {
There is gonna be an "s" after the reducer
and on 3:02:53 the change there was the z-index: 50 on the style or z-50 for tailwind
I hope i helped!
Thank you man!!
Excellent work, thanks for taking the time, they are not short videos, and it takes a lot of effort on your part, there really is a lot of work behind it, greetings from Argentina.
Content is amazing. Thank you! Production level tutorial projects are not common so I really appreciate your content.
Giving hearts to all the comments, so nice of you man. Keep up the good work and give us more stuffs like these ❤️❤️
Here I am wishing you made this using flutter, I'm glad I know react too because you've seriously made me question my love for flutter. This is really Awesome!
Hi sonny , hope you fine dear m you guys are so incredible . I was always in MAPS in React Native , and you solved this issue, May God bless you. Make some more awesome stuff like that
I love how you explain and strucutre your projects, I really like to see them after my work hours or in my free time. Really educational. This time I tried to follow your tutorial, but changed some things instead of following you, added extra additional features and used mapbox instead of Google Maps, added authentication and a small backend. This is my first time working with react native. I learned a lot from your video also helped me understand lot more things at the same time. Respect brother
I havent watched these vdieos but can you tell me if they just code frontend or they include backend also?
@@kshitizbathwal7509 It's just frontend but some of his videos contain Firebase backend
At 3:03:05, if you are facing the issue where your back button is not clickable, the fix is to add change z-index of your back button. Add "z-50" to the tailwind styles of the back button
Thanks you have saved me tons of time there
You rock man!! 💥 I was gonna start learning Android Studio. But I think after react , React Native is the way to go.
I coded along and I'm finally done.
Impressive :)
Could you pleaseee share the playlist in your background? I love it!
Edit: Missed the newsletter part. I've signed up for it! Thanks
Papa Fam for life ... So pumped for this you are really changing lifes thank you so so much Sonny ... Love from Pakistan
Sonny you are amazing as always! Thanks for everything
Hi Sonny, I'm just 30 mins into this video, And i realize you bare super smart, with the way you explain, its almost as if you are the one who came up with the uber idea. definitely building this as soon as i get the fundamentals down.
Sonny, the beast. OMG, this build was epic
one of the best channels I watch to learn! thanks for the content sonny.
Wow i like how you handle Map navigation , travel time and calculating amount and distance that's awesome ,,, keep up the good job,, to those who are looking for tutorials in relations to react native map navigation, this is the right video for you..
Really amazing Sonny, thanks for the class bro 🤛🏽
Best build indeed. Good stuff man.
finally, i have been able to complete a build thanks to this tutorial! This has given me so much confidence as a beginner
Oooh Papa React I missed the stream but this is sick man.. Thanks man
Crazy build!! Can u add some features like real time location tracking and driver dashboard
Hey all if you are having trouble with the navslice reducer setOrigin function giving an error as undefined. It seems that in the navSlice.js file you have to rename reducer to reducers. Hope this helps!
Thank you for sharing this right now; most students are interested in taxi booking app development for their college projects, and you are assisting them with this tutorial.
Crazy Stuff Sonny please extend this build if you can like dashboard for drivers etc/
Yeah that will be sick
Great video. But when you troubleshoot can you not paste your old code because you might not notice a change but for ppl following along it doesn’t fix the bug. For example, if you go to 1:59:32 on line 12 reducer is changed to reducers. Took me 30min to figure out. Lol. Really like your videos tho, good job and thanks for making them. 😃
This is exactly what I need thank you so much, you are a legend.
This stream is honestly so well done man,
Sonny I've done a few of your videos. They're always great. However it would be nice if you'd do a React Native video at some point that is just an hour long. Something simple to cover the basics of your preferred setup, then deployment and app store upload. Thanks for all the work you do 🙏
As a Fullstack dev with quite a lot experience but no React Native, you helped me a lot with getting into React Native! Thanks. Went smooth from 0 to 100. You saved me days and weeks from creating my prototype!
I don't know much about coding but this dude's vibe is inspiring me to learn.
After watching your builds, development seems like a cakewalk.
Keep it up sir, waiting for the video in which you use ML with Native App.
❤️❤️
Love this channel.Teaching is an are of making topic interesting and that's what you are doing ❤️❤️❤️❤️
Hey Sonny~ your contents are always awesome!! Thanks for this great work !!!
Thanks for tuning in dude!!!
Thanks Sonny - The real-world examples are a great motivator.
Dude this channel is SO UNDERRATED It should have like atleast 300k SUBS
One of the best clone ever build for react native
Incredible Tutorial. Thank you so much.
I like your format G! Nice Video and good vibes!
At 1:59:25, what changed was in the createSlice object parameter, you were passing in "reducer" instead of "reducers" as an object property. It wasn't a refresh issue.
Thanks
Thank u so much i was struck there :)
Life SAVER!!!!!
Thank you so much.😊
thank you men i was searching for a while
I really enjoyed your clone videos..That's are awesome..I learn a lot from those. Will you please make a video about how to send notification using expo & firebase ? There are no tutorial about it on youtube.
Good stuff bro, I just completed whatsapp-2.0 build
Love it! Good job man 💪
Love this ❤. How would you do the drivers side
No No No No, This is too good. When I hear you say Redux Toolkit, I'm like you nailed it, man. Thanks Sonny
Nice work! Very entertaining and helpful, greetings from Chile!
How can u smile while coding . u r awesome dude
I only can say...!awesome video!
I watch it completely and I have learned a lot!
I like your recording setup and you're really pumped!! very captivating
Nice video sonny, i learned so much about react js. Sonny, please also make a video on how to make google lens clone( products recommendation by analysing photos).
Best tutorial. Hope you many video react native ! Thank you bro
thanks man. u made it seem so easy
This guys is god of many developers ❤️
Hello Sonny, Thank you so much for this awesome tutorial what an amazing build! I have implemented several builds from your channel and it is helping me out a lot. I just wanted to point out to you and everyone that the error that occurred @1:58:49 stating that setOrigin is not a function is resolved by naming the reducers object inside navSlice as "reducers" with an "s" instead of "reducer". Thank you and keep it up 👍
Thanks for this, he just copied and pasted over the code to fix it instead of debugging lol
I've just seen that difference (reducer - reducers) and came to the comments to see if someone else saw it lol
thanks for your help, it took me lots of time lol
@@kikombehome7873 SAME
thanks a lot. Came over to the comments to see if someone also realised it. Been stuck on this bug for hours . Thanks a million dude
This is so great!!!! much respect
Im 2 years late, but this is still an amazing and probably the best uber clone, not talking about how accurate the app looks like, i mean the instructions and the code functionality and the explanation on what to do and why, Love you Sonny, you're the best
Hello, i'm amongs the very few that my code isn't running. Can i have uses because starting all over again will be too long
@@krys_gaming476 well what do you mean by your code isnt running? honestly that could be due to many things, its pretty hard to guess what went wrong, but if i have to guess. i'd guess you didnt get a google maps key properly which would lead to unexpected errors
actually its the redux making my code not to funcion properly, everytime i Use the "Provider", it nshows me errors on expo go. Been sending the issues to AIs but all say theres no problem found
@@Cookies-cv3nd
I would like to cooperate with you. Do you need kitchen knives? If you need, please contact me. Our brand is inviting customers to evaluate kitchenware for free.
Thank you Sonny for this incredible work. for some reasons the .env file did not work with me. the autocomplete did not work but I worked around it by placing my GOOGLE_API_KEY as variable. I know it is a bad practice but at least my autocomplete is working and all google services are available to the app.
This was amazing! 🍿🎉
God may bless you really, there is none course in udemy like this, you saved my life because I am founding my startup in the field of transportation and I need this kind of stuff and also straight to the point since as startup we don't have that much time
While trying to use Google API from India, it was not giving out any search results. I then created a different billing account and set the account country as US, now its working properly. Amazing approach you have, bro. You clear concepts so clearly. Im definetly more clear in RN because of you.
Hey! I am facing the same problem can you tell what address did you mentioned while opting for different country?
When sangha drops a video. First thing you do is drop a like and then continue. Remember this process is a must. Appreciate the free contents guys please.
Thank you Sonny for this amazing course!
thanks sonny, great content, by the way the setOrigin error is resolved by changing "reducer" into "reducers" in navSlice, could save people some time...keep it up sonny
You are helping so many people react papa thank u so much love from india
Bro this guy is giving all the cool jazz for free ?! All my support dude ✨
Hello Mr.Sonny Sangha
Thank you for your videos and I have a question is the application dynamic or static?
Does the code of the Uber 2.0 application on your ghuitub contain the server part and the driver part? Thanks again
Unfortunately, I realized that I cannot use a custom javascript core as I am using a standalone application with the expo.
I'm sure some people will encounter the "Can't find variable Intl" failure message because it works with the expo in the android emulator.
You can fix the problem with the following steps:
yarn add intl
import 'intl'
import 'intl/locale-data/jsonp/en-GB'
You're the best!
woow papa-react this is amazing
Just finished this build, this was awesome, and the best part of it for me was the debugging of the issues I encountered. Great learning tool for anyone.
hey bro where can i find images like the uber car?
JA QUERO A PARTE 2!!!!!!!! KKKKKKK SENSACIONAL
I know it is an old video, but for people that get the error: [TypeError: 0, _navSlice.setOrigin is not a function (it is undefined)].
There is actually a change :
You resolve it by naming the reducers object inside navSlice as "reducers" with an "s" instead of "reducer".
Wow everyone here is really smart! I just stumbled upon this channel by mistake - bless you all!
I missed this stream.. dang it.. by the way, is it possible I preview the project to anybody straight away to my phone, after I scanned the expo’s qr code? If possible, is there any restriction, such as make it as a production app at expo browser?
Nice project I finished it today, adjusting everything to the current best practices. I hope that you can do more react-native in the future. Greetings from Mexico!
Hi, Gerardo. Please how did you go about the navSlice file? did you copy what is on redux documentation? its different to what sonny did, maybe that is the latest one. Or you typed what is on sonny screen
@@oluwatobisamuel247 which part exactly? I think that part did not change at all, but let me know exactly where so i can help you
@@gerardomedellin4355 @Gerardo Medellin thanks for your response Gerardo. I passed through that process. I'm currently having a blocker at the Navigation part. from min 1:15:00
Hey Sonny! Have learnt React from you. Have learnt NextJS from you. Would be wonderful if you can plan a new build using typescript.
Yeah TS would be amazing!🙌🏻
You rock man!! I was gonna start learning Android Studio. But I think after react , React Native is the way to go.
I would like to cooperate with you. Do you need kitchen knives? If you need, please contact me. Our brand is inviting customers to evaluate kitchenware for free.
hey Sonny how do you auto import in vscode and also share some video on vscode shorttricks and configuration as per your setup
Bro you helped me a lot in my journey 💓💓💓💓
Great learning
Please make a tutorial of PayPal clone
This is actually pretty dope
That was sicl :D. Thanks for this challenge.
Nice Build Sonny Can't wait to try out react native and can you consider adding firebase security in your next build please 🙏
I finished the Uber app. Do you know if I can upload it to firebase similar to the airbnb app or would I need something else?
Hi, great tutorial and thanks for sharing :) please answer, can I do all of this on Winows?
1 min in and I am already pumped
finally i clone this whole project thanks sonny for this project
Something with sqlite or anything for inventory management build in ract native
good content, keep rocking bro
One of the best projects, thanks
You are amazing bro. Father of React. Love from India.