Building an app from scratch with ChatGPT: the future of development

In this video, we will use ChatGPT to build an application through a series of natural language conversations. ChatGPT is a powerful language model that could help the developer streamline the development process and bring ideas to life more quickly and easily.

✨ Follow the step-by-step guide here:

This tutorial uses the Open AI Chat GPT. For more info about it, follow:

📚 Join now ”The Full-stack Mobile Developer” course

This build includes a lot of tools & technologies, and it’s a great opportunity to learn:
– How to build a web app and a mobile app using React Native and Next.js
– How to integrate Chat GPT into a web or mobile app
– How to deploy the application you’ll build

🐱‍💻 Get the source code with the Asset Bundle here: *link*

💬 Join the notJust Development gang and let’s build together

Tag me on social media when you finish this build, and I will give you feedback on your project.



Disclaimer: This build is for educational purposes only!! All views, opinions, and technology choices expressed in this video are my own and do not represent the views, opinions, or technology choices of any entity whatsoever with which I have been, am now, or will be affiliated.

#notjustdev #chatgpt #reactnative

What’s up not just developers welcome Back to a new live stream and today We’re gonna do something exciting back In November 2022 openai launched a new Model a new AI model called cha gbt Here we have it so chai gbt is a Conversational AI model that you can ask Any question and it will try to answer And understand the context and after the Launch of charge gbt like the internet Went crazy everyone on Twitter is Talking about it everyone is trying to Use and trying to understand what will Be the impact of this Ai and yeah if you Haven’t played already with it I highly Encourage to do so you will find the Link to charge you within the Description below but um yeah like here Are a couple of examples for you to Better understand what it does so you Can basically ask it any kind of Questions like explaining Quantum Computing and it will do just that where You can ask it to create a keto meal Plan for a week and it will do just that So it’s uh it was trained on a very Large source of data and it has like the Knowledge in all different areas but it Might be interesting What’s even crazier is that chagibiti Can now write code can understand code Because of a separate model that it Incorporates called codex and that model Was trained on a lot of uh data like a

Lot of source code so now what it can do It can actually we can ask it for Example here I asked how to render a List of posts in Rec native and it went Ahead and Explained me what is a flat list what is Data what is render item and how we can Put everything together with a source Code in order to have like a working Source code it can do all of this stuff And yeah like after playing four more Time my mind was blown and I was Thinking about uh Questions like this can an AI code a Mobile application now that it has so Much knowledge and it can generate this Code That’s an interesting question and I Think That would that would be the goal for Today’s video we’re gonna see if we can With AI can code a mobile application But if we go down uh the rabbit hole of These questions of trying to understand The future of AI and what impact it will Have specifically on us developers you Can get into the Um into the question of will AI replace My job Well I don’t know but in this video We’re gonna find it out in advance we’re Gonna see and we’re gonna take a Conclusion of if we should be threatened By uh artificial intelligent and if it’s

Going to take over our jobs as Developers So uh the plan for today for this video Is gonna be as following uh here is me a Little developer with Um a little bit over 80 years of Experience uh developing application Working in different companies at Amazon Building my own startups and doing Everything myself now with the power of AI let’s step back and see if we can be A little bit lazy and just simply ask AI That’s what we’re gonna do we’re gonna Ask how to build a react native Application and then we will see what Where judgibility will lead us to we’re Gonna ask more questions until we get to The to the wanted result and after every Step we’re gonna go back we’re gonna Code everything we’re gonna feel Powerful just by copy pasting the code But that’s the point of today’s video That’s the point like to see how easy Were if a normal beginner that haven’t Written any code can use rgbt to build a Usable application And after we code everything and then We’re gonna have a fully working react Native application hopefully if I manage To do that because I’m pretty Um there are a couple of risks points Here uh one of them is that jgbt was Trained on data up until 2020 or 2021 Which means that there is outdated data

If I’m gonna ask it something that was Released previous month jgbt will not be Able to answer me so I feel that there Is still like you need to know something And it’s still in my opinion impossible To build an application Um with jgbt but let’s see let’s let’s Give it a test I I love challenges and Today we’re gonna find that out so the Application that we’re gonna do I Decided to be a simple application a To-do list application uh because that Is the most common application that you Build with a new technology that you Learn and also we do not have this on Our channel so yeah let’s see if jojobt Can help us build a fully functional To-do list application with different Features What’s more interesting is that for this Challenge I have only one hour and if I Do not manage to build this application In one hour with charge gbt then I’m Gonna have to do something so I’ve been Actually thinking for the last two days Of what would be the uh what what should I do if I fail to do that if you have Any ideas let me know but Um yeah let’s do it like this because Christmas holidays are coming if I fail Let’s do it like this if I fail to build A to-do list application with chai gbt Under one hour then I’m gonna sing a Christmas song a piece of a Christmas

Song here and yeah believe me you Definitely don’t want to hear me sing Maybe I have skills on coding and Teaching but when it comes to singing Probably I’m gonna get like demonetized Or banned from YouTube for for doing That but yeah that’s the challenge That what happens if we do not do that And I think we we are we should be ready To get started Uh everyone in the live chat hi guys how Are you doing Do you want to hear me sing and also Yeah think about the song that you want To um want me to sing it should be Christmas song And and then we’re gonna vote if I don’t Manage to do it but I’m ah It really like there are so many Variables in this challenge 2gbt is Getting a lot of Um traffic nowadays uh in the first five Days they had more than one million Users using it so sometimes Um like it takes a lot of time to get a Response sometimes Um the interface can yeah like can go Out so hopefully that will not happen Today let’s hope that uh like from a Technical perspective everything is Going to be okay and then then we will Have like the challenges of actually Building and implementing and Trying to think of the right questions

To ask jgbt in order to give us the Answer that we want and that is that That is probably the main goal uh and That is probably also a very good skill That a developer should have whenever You have a problem you need to put it Into words and search for a solution and You do that usually on Google maybe in Future we are going to do that in chat Gbt but at the end of the day your job Is to put problems in words in order for The AI to understand you and to lead you In in the right direction We want both we won’t have a completed Task and also a song from you uh that’s Not gonna happen either one choose one Jingle Bells Oh my God and with my uh with my like Accent singing English songs it’s even Worse Shivan that’s a very good idea to work With Dale to uh or diffusion AI Um I if you’ll enjoy like these type of Content let me know down below and we Can dive deeper into these AI models we Can work also with images Um and um yeah like I’m all up for it It’s really impressive and I think that This is when the future All right so Um are we ready Actually I didn’t prepare anything for Uh for today so that’s gonna be like Um that’s gonna be interesting

Um so bear with me we’re gonna go Through A lot of uh Confusion but we’re gonna solve it Together step by step uh with you so are We ready uh let me actually grab a Terminal probably And also I’m gonna open up a visual Studio code just to have it ready and Then we can get started So I want to make the terminal bigger so You can see Just like that and also let me Open Visual Studio code And make sure that we are also zoomed in As well here And if I put it this way Everything should be good to go All right We developers want the task and this is December and December month want a song From you and I’m not gonna trick me I See you I’m gonna do it in one hour you’ll see Hopefully All right all right all right so Um if we’re ready let’s get started so Quickly to summarize everything that I Said so far we’re gonna ask Chargeability for instructions on how to Build a mobile application a simple To-do list application but we’re gonna Try to implement uh multiple features so It’s going to be a fun challenge we have

For this only one hour Um we have already like only one hour if I don’t manage to do it I’m gonna have To sing a Christmas song for you here at The end and I hope that uh I will not Have to do that because that would be Embarrassing so let’s start our timer And one hour starts now let’s go how do We start uh yeah let’s start with a General question on uh how to build a Mobile Application using react native I’m gonna Try to not use as much knowledge as Possible and make the question as General as possible to see in what Direction charge gbt will take us for Example here like as a beginner I might Not know about Expo and I’m interested If it will recommend us doing with Expo Or with react native CLI but I think I’m Gonna Trust it and I’m gonna go with what it Says so as we can see here is some Information about react native we don’t Have time for that because we have only One hour and first of all the first step Is to install the react native CLI the Command line interface by running npm Install minus G Rec native CLI so let’s Copy this command and while chegebt is Still answering our question let’s go Ahead and install React native CLI globally Uh and while vet is doing in the

Background we can look at the next step Create a new project by running react Native init my application okay I’m Gonna copy paste as much as possible Today Probably the video should be like Um Not using the keyboard only copy paste Projects let’s go there and here let’s Do Um One second Oh today I’m pressed by time so I’m not Gonna have time to be perfectionist Meaning that we can skip through some Styles and so on so let’s go ahead and Paste the command react native init my Application and I’m Gonna Leave it even The name like that So while this is downloading the Template let’s have a look navigate to The project directory using CD my Application okay we’re gonna do that After that is done start the react Native packager open a new terminal Window Navigate to the project directory And run the application on iOS simulator By running acne to run iOS or on Android Emulator by running ok This will create a new Rec native Project with a default component such as Single objects file that contains root Component for your application from here

You can start building as we know that And Rec native uses a syntax that is Similar to react so if you have Experience with react it should be Relatively easy to learn do we have Experience with react I don’t know yes Let’s say we we do have we can also use Third-party libraries and plugins to add Okay this is very general and it only Shows me how to start and run the Application I’m gonna do the same how to Build a mobile application using rack Native bike but I’m gonna be a bit more Specific I want to ask it specifically About a to-do list application let’s do How to build M To Do List mobile Application or just application because If it’s Rec native I think it will Understand that it’s a mobile Application let’s ask it this way maybe More specific will work better Aman Um if you reach out to me on Instagram I’m gonna get back to you like these Days I’ve been preparing for the live Stream so yeah Uh here is a general outline of how you Can build a to-do list application with React native set up your Rec native Development environment by following the Steps outlined in the previous answer Can you imagine that like it Automatically understand what it already Um gave us an answer can I

I’m gonna do some uh Some hacking here It’s not really hacking but I want to Get rid of the this panel will I be able Delete No it was a bad idea okay never mind I I just wanted to zoom in a bit like This yeah so uh where are we so Set up the development environment Following the previous answer like it Already know that it gave me this uh Environment so we already have an Environment created we also have a no It’s installing Coco pose dependencies So we are still waiting for the Application to create Then create a new component for your To-do list this component will be Responsible for rendering the list of to Do items and handling the user Interactions Define the state of your component what I don’t know is how can I edit it so if I’m a beginner How can I edit the code of react native Application will it recommend me some IDs for example I specifically didn’t Ask about the IDE because as a beginner Your question might be more General Foreign Native application you will need a tech Text editor or integrated development Environment ID that supports okay okay Includes Visual Studio code Sublime Text

And webstorm okay that means that it led Us to yalex to Via Visual Studio code Once you have a text editor installed we Need to open the created project in Visual Studio code so let’s go ahead and Visual studio code and let’s open our Project So it should be hearing projects YouTube And here should be Live 2 and my Application let’s open it here and this Is our application okay back to our Charge B Team I’m gonna actually zoom out a bit Because it’s too much Um I’m gonna go back to the previous Instructions that we have in here we uh It’s saying that we need to run npm Start to start by development server so Let’s go ahead and open a terminal and Do npm start I’m gonna zoom in probably a bit more Oh Metro is 0.72 okay that’s nice uh and What’s the next fifth step open a new Terminal window and navigate to the Project directory let’s open a new Terminal window and we are in the Project directory what should we do next Uh run the application on iOS simulator By running react native run iOS Or on Android I’m gonna go with iOS if You have Android you can of course use Android So we are seven minutes in uh so I need

What uh password I don’t know the Password Please work oh my God Oh I’m in a hurry and I make mistakes as Always So Um What’s going on found xcode workspace Core simulator detected version Framework does not match existing job Version attempting to remove a stale Version in order Oh my God what’s going on here Uh did we skip any steps no we didn’t Unexpected I in Json run a simulator oh My God don’t do that to me right now Launching unable to boot device in Current state booted Okay I really hope it just by running it the Second time it will magically start Working Usually does And here we also see the time so it will Take a bit of time for the emulator to Run But we can go ahead and charge gbt and See what’s the next steps so this will Create a new react native application With a single file up.js we are curious So let’s go ahead in our project and see Up.js So here is where

Our code leaves Or section replication yeah maybe as a Beginner we still don’t understand this Code Um So going on to how to build a to-do list Application for more details let’s see Create a new component for your to-do List this component will be responsible For rendering the list of to-do items And handling user interactions but how Do we do that and check this out if we Ask jgbt how to do step two Will it understand and will it explain Us specifically how to do step two of This Creating a new component for your to-do List Let’s see To create a new component in react Native it understood exactly what I Meant you will need to define a JavaScript class that oh JavaScript Class oh my God Uh I’m not ready for that But this was the challenge that I was Talking about it was created with a very Not a very old data it’s all data in Terms of programming because a lot of Things are added day by day to to our Ecosystem uh what Yeah it’s trained with data from 2020 And before so that’s why it recommends Us a class component I truly don’t

Remember one as the last time I was Working with a class component Oh but can we ask it uh how to do it With a functional component will it do The same but with a functional component How to do it with a functional component Okay 10 minutes in almost 11 minutes the Time flies very very fast and I don’t Even see the application on my device I’m still waiting for it to install oh My God come on Will I regret not starting it with Expo Because I don’t have any icons now I Don’t have anything so it’s gonna be Interesting request time out Uh how to Let’s do it again let’s do it again That was what I was too many requests Oh no That’s nice that’s amazing 11 minutes in and we are already uh Hitting the limits of CHA gbd too many Requests and if I do it again if I just Refresh it will yeah like forget Basically the history of our messages so I’m gonna have to start from the Beginning How to build a to-do list application in React native With okay let’s do it just like this how To build a to-do list application in React native On the other side our application is Bundling and it’s has been built

Correctly and here we see we see our Starter project with the application Running on the device that’s good from This side we are we are good Let’s see so set up recognative project Using ivorac native CLI or Xbox CLI That’s amazing I didn’t have this option Previous time but I’m gonna still Continue with rack native CLI design the Layout and user interface for the to-do List this could include a list of to-do Items a form for adding a new item and Buttons for making items is complete or Deleted use rack native components such As viewtax okay use Rec native state Okay this one is a bit more General oh So Here is some example code to demonstrate How you might Implement a to-do list Application in Rec native right away we Have Code I’m gonna wait for it to finish Building and I think I’m just going to Copy paste it in my application Um Jason is saying charge gbt is going To replace us newbies Um let’s wait until then to to see the Outcome so it right away gave us the Code for our component so let’s press Copy code let’s go in our application And let’s replace in our up.js Everything with the new code let’s save And let’s see if it’s actually working It’s actually working and I see it there

Somewhere around the top Um [Music] Should we just fix it or Uh how to to ask it To fix it Okay I’m gonna add a little bit of my Knowledge but let me try to ask it Um how to make the content in react Native Um Not be displayed behind the iOS notch I think this question is very general Like from a person that doesn’t know About I didn’t mention about safe area Views let’s see what it recommends us How to make the content in react native Not be displayed behind iOS Notch not Sure if that’s a very good uh idea to Make content react native app not be Displayed behind the notes on iOS Devices you can use safe here we have View component provided by rack native Perfect let’s go ahead this component Has padding to the top here is an Example how to use it we import it from React native and we put our content Inside it okay perfect that means that We just learned a new topic as a Beginner this is nice so save save area View I’m gonna add it uh for my Content And yeah just like this will it work yes It worked amazing so here we have our

Input if I’m gonna write here something Hello hello And if I’m gonna add Um something is happening I don’t Understand what Uh how are you add It’s being added but I’m not sure where For example I see complete and delete buttons here Uh but the text is displayed to do text Add to do Input value you see the problem like Right away it gave us a code with some Bugs for example when we save it in State we simply put the string there but When we Render it here we have to do text Um Uh so how Um how to Write and Function add To do how is it called add to do That will insert in state and new object With a property Text Um and the value Will be taken from Another variable input input Input value Will it answer us will it help us figure Out this bug but again I think as a Beginner this would be the moment where You get stuck because you do not see any

Text What I looked is okay if I don’t see the Text how we are displaying it I see that We are displaying it by uh by going To do dot text and to do that text I was Looking like okay in our to-do list how Do we save it well we don’t save it as An object we have value tax we we put it Directly there Um so how to do here it is awesome set Input value so how to do What’s gonna that’s how it’s gonna be Changed and now if I’m gonna add new to Do add now it’s gonna have a have a text Uh By milk add and here we have by milk and Now if I press delete it’s going to go Ahead and delete it and it the deletion Actually works It works as we expected for example if I Want to delete this one perfect now Um maybe we can add some styles to this Container so Uh how to Dial Uh the view container of one to do list Item what it will do So far so good uh let’s see we have Adding to to-do list deleting from there Uh and also completing what does Complete do in our code at the moment so If I press complete it does complete to Do Okay new to the list oh it adds a

Completed true property there Okay I understand but does it do it Correctly so new at in the yeah probably Does it correctly So it has that checkbox uh request Timeout Hmm that’s gonna be challenging but we Are 20 minutes in Be more specific tell it to move the Code in the mid to the middle of the Screen To move a code which code Jgbt will turn newbies into Sinners That’s very good uh Way to think about it because yeah like At the moment I see it not as a threat I See it as a help for Developers Um so to style The View container of a To-do list item in Rec native you can Use the style prop and pass it an object With desired styles for example uh let’s Try this one your to-do list item it Means that it should go here like in the To-do list Map Uh okay that’s something this will apply A yellow background okay you can also Define our Styles in a separate object And use style prop to pass to the view Okay This allows you to use the same you can Use any of the Styles supported in the View okay let’s try to do these Um defining a style object as it says

And applying styles.container Styles dot container Um So To use the Sims okay view component Style prop for example Flex Direction And so on okay here are two styles that It generated maybe they will look good One of them is for the text one of them Is for the container and that means that We also have to go ahead and hear for The text probably it says yeah like for The text we need to add Styles text the One that we created down below Okay Um it’s still weird container it has a Background yellow so let’s ask for uh For let’s give it more details Um Style uh container view in react native Uh with Minima Mini malistic With minimalistic I don’t know Aesthetics looks a minimalistic design Around corners uh Shadow Some space thing inside spacing outside Uh what else outside and [Music] Um Children and a line No aligning it’s okay Let’s see what it will give us in this Scenario It has character limit of yeah

Like four beats so don’t make it full Conversation it just has something that Doesn’t require deep convo Um I think like asking it for like Specific features uh it works pretty Well so far like it it has like enough Capacity to answer and to include once We’re there To sell a container react native Minimalistic design here is an example That you might style so let’s see Container view Styles container faster Faster we are 23 minutes in background I Border radius Shadow color shadow offset Okay I think that’s gonna look good I Already can picture it in my head Uh okay container If I do it like this okay something is Better something looks okay uh now what Uh should we do Um I want to make sure that these Buttons Are in the same uh line so How to put two buttons in the same line In react native and we should already Think about some bigger tasks because Now we can uh oh all right Um I’m gonna Mark the one that are Completed with gray background So we know that whenever we press on Complete What did we actually do what our code is Doing that’s also a task for us we need To be

Good developers in the beginning in Order to understand the code that was Written by the AI Because I think with without a lot of Experience you wouldn’t understand like What’s Happening Here For me it’s clear that we simply go Ahead and for the item that we completed We are adding one more property to that Object besides the text that property is Called completed and it has the value of True so I’m gonna ask charging team After this is done so it Teaches us about Flex Direction on a View component and putting them wrapping Them in a view component so let’s do That so it’s pretty clear here like what You should do you see two buttons and You see that it’s wrapped with a view With this style and also it explains Like in detail oh my God I’m not sure About your job as developers but my job As a tutor like definitely might be in Danger Um all right so As I was saying like our buttons we Wanted to put them inside that view that They suggested and now they are in the Same row perfect okay Um How now about the background color so How um How to change that background color of The view to Gray

Uh if [Applause] Uh to do list item Has Uh the property Has a property is completed work can Completed to uh true Equal to True let’s see What Okay Okay so we have 26 minutes so far what We can do is we can add a new to-do list Item new item add we can add them here Um we see them in a list I’m gonna add More and I’m gonna show you a problem But we can ask chargpt to fix The problem is that when we have a lot Of them we’re not scrollable but we’re Gonna get that in a moment so here to Change the background color of A View to Gray if a to-do list item has the Property completed equal to true you can Use style prop and pass it an object With the desired Styles you can use Maternary operation to conditionally Here is an example of how you might Change the background color of A View to Gray if to do list item has property Okay so view style to do completed Styles completed Styles incomplete and Then we have completed an incomplete Okay let’s go with this approach so we Have to change the style property of our Root view of our container

And the container is this one Where is it come on Style So instead of style container I’m gonna Do Style If to do Completed style completed incomplete Now I know that I have to change from Here from container Tool complete To how is it called incomplete And we know that we have to add one more Style so I’m gonna just duplicate this One I know it’s not the best code but I’m not trying to write the code that I Would write I’m just trying to copy what We suggest so now they suggested me to Have two separate Styles and I’m just See I simply duplicated them and one of Them has Background color red for the completed So I’m gonna go ahead and for the Background color uh I’m gonna move it to Gray so now it looks like this I’m gonna Probably do gainsboro To mark them with a lighter gray like This and if I complete this one Nothing happens why Uh why nothing happens Delete delete delete delete delete Delete delete One two three so if I complete this oh This one is complete No it should be of Our way around so this one is incomplete It should be with white

And the completed should be with Gray sorry that was my mistake and now If I complete the second one it moves to This one and if I delete we get rid of It perfect Um I don’t know what else what else oh uh Else we had like that issue Um I’m gonna do some kind of um To do Um style input I don’t know what else uh yeah we’ll see Um I want to do scroll Scrollable list Um How to render the list of to do Items as a scrollable list I don’t know A very general question to see where Judge BT will lead us I’m wondering if it will suggest like The scroll view with a mapping word Directly a flat list most probably it’s Going to be a flat list You can use the flat list yes so so so Far it is recommending us then Um mapping but now it will recommend us Flat list here is an example of how you Might use the flat list okay let’s see Let’s see we have to do list we have Text item completed it already knows the Structure of our so It already actually has some predefined Items so that’s actually very good and

I’m gonna go ahead No I’m not going to change anything to Be honest because this is not a state Variable so we need it to be a state Variable and that’s why we’re gonna Leave the way it is the only thing that We’re gonna change is probably this flat List so I’m gonna copy the flat list Hopefully from this text if you have a Time and read it you’re gonna understand How to work with a flat list so what I’m Going to do is instead of this mapping I Already know that we’re gonna use a flat List we need to make sure to import it From react native of course Um and if I scroll down a bit So for the flat list the data is to-do List item basically the same as this Variable in the mapping Then render item for every item instead Of rendering a simple text what we’re Gonna render is exactly this View So let’s copy it from here And let’s put it here Where is it yes like this And key extractor it’s gonna take the Item dot text yeah that’s okay Uh all right so now we can remove this Mapping because we replaced it with a Flat list and now if I’m Gonna Save Key index it also needs the index here Save uh is here instead of to do it Should be item uh completed and here Item dot text

Yeah you know I know these things but The beginner I’m not sure if he will Know so probably um where it is but you Still need some experience I’m gonna go Ahead and grab actually this dummy data And I’m gonna put it as the default Value for our to-do list here Just to have like what to work with Uh like this so we have item one Completed true item two not completed And this one is completed and now if I’m Gonna do more Uh they are scrollable but the thing on Top it remains there Okay that’s good perfect uh maybe we can Add the text input and the button at the Bottom of the screen like after the flat List let’s see if that will work So now Um not really working Uh because the flat list would need now I’m gonna leave it there I don’t want to Get into these details it looks good uh What else what else what else I wanted So we have we are scrollable we have a Scrollable list we can add things where We can complete them and we can delete Uh okay you know what I want like a very Technical task I want to be able to persist with data So after we close the application Completely and then open it again I want To have the same to-do list items and Actually we do

That’s not possible Oh oh oh it’s okay Um we are coming from this Item one item two and item three but if I’m gonna add one more for example this One and if I’m gonna close the Application I’m gonna come back then new Item that I added is not going to be There and we’re gonna start from uh from These three items from the beginning So let’s go ahead and ask jojobiti how How to Persist data Um Uh on that device Storage in react native or how let’s be More specific how to persist data Um To-do list How to persist that to do list data on The device storage in react native let’s See Maybe I don’t even have to put rack Native because it will know from the Context but we are talking about track Native and it’s going to be an even Easier conversation like how to purchase Data and I think it will understand 35 minutes 35 minutes Come on come on this is an important Um to persist but to-do list data on the Device storage and react native you can Use a sync storage API provided by react Native I think storage is as simple as

Synchronous okay okay okay actually I Think storage was moved to um to a Community package so I’m wondering if it Will work probably it will not so let’s Go ahead and import testing storage from React native as chai gbt is recommending Us Let’s go ahead here and we see that I Think stories has been extracted from React native core and will be removed in Future uh it can also be installed like This one so This is another point where you need Some some experience with ref native to Understand an issue to to read it and to See like okay maybe there were some Changes but yeah like here is what we Have to do it we can install it uh using This rack native Community testing Storage so let’s copy that name and Um and let’s go ahead and install it Using npm install And Rec native Community I think storage How’s it called a sync storage simply Yeah I think storage that’s it All right all right so what Uh could not resolve a dependency react Native thing started from the root I Think storage What’s going on here Um Uh how to install Arachnitive sync storage Has moved to the organization oh my God

This package has been deprecated So I think rack native I think storage Uh how to install it come on I want to Install it Uh multi-platform Get started npm install okay it’s from Here So as you can see because Um Because of an outdated Um information data set we receive Recommendation that are a bit outdated Uh In rack native Okay after installing it let’s go ahead And continue Basically from the documentation we’re Gonna Oh we need to link Android and iOS Yeah we need to run and Export pod Install Sorry npx pod install And Mac OS Okay And usage I’m gonna import a sync Storage from here In our app.ts yes so import using Storage we delete it from there and Let’s go back to our cha gbt Uh and see what it recommended us so as We can see it recommended us using a use Effect hook uh fetching data a way Testing storage get item to do list if

To do list then Um yeah it looks very good I think Storage set item to do list Json Stringify when the to-do list updates Okay let’s go ahead and grab these two User facts And drop them in our application and as We saw like we should be somewhere Let’s do it here We need to also make sure to import use Effect from react And we need to Run the application again on Um On iOS because we installed a new native Dependency Okay guys whatever features you would Like me to do because after persisting I will take two more features that you Would recommend in the chat so let me Know in the chat what features do we Want to add Uh be reasonable because we have 20 more Minutes and we can do that one of them Probably will be styling like working a Bit with styles Hmm Maybe I can ask charging how to render Um How to render Um check box Um I can In react native how to render checkbox Icon checkbox yeah before we completed I

Think like because it’s um Time of posting or when completed yeah That’s that’s interesting Um So we have our application running We have our item one item to item three Let’s go ahead and delete item one and Item two and let’s go ahead and refresh That close the application and open it Again if we have only what my item three That means that it works yes it works And if I close it again and open it It’s still there and if I add item four Add item four Something else then if I I don’t know Yeah let’s Close the application open it again and With data will still be there Awesome so we have a scrollable list we Have Um persisting data Um what now what now Um What I was asking it here how to render Checkbox too many requests no come on Like I’m not doing too many requests it Was For a reason like believe me come on You can do it I still have 18 minutes I can do it Too many requests please Foreign If I’m gonna do a new chat oh okay How to render

A check box icon in react native Come on come on Chad please please It’s 17 more minutes I don’t want to Sing To render a checkbox I can interact Native you can use checkbox component From react native paper Library here is An example how to use it react native Paper should we try that we have 17 Minutes that’s a separate library to Install and that can give us a lot of Um Troubles checkbox checkbox okay let’s Try let’s try uh How to install react native Paper And we are going to ask this question Here but I’m not gonna wait I’m gonna go In them rack native paper in the getting Started and I’m gonna do npm install React native paper we already actually Learned how to install a library so We’re gonna do that and we need to do Npx pod install after that and it’s Gonna take a bit of time let’s do it uh Come on scanning If you are on vanilla Reckoning you also Need to install and Link Rec native Vector icons on now Uh my oh but Vector icons can give us a Lot of problems oh my God installation Oh okay 15 minutes and I’m getting into A completely new UI library that they Have never used before

Um For each component if you’re interesting IOS browse Rec native fonts edit info List available phones you have this one Uh let’s go ahead in there it said to go Into iOS Into Info where is info here and somewhere Add that and False here We need to put the fonts Just like that And we need to run npx pod Install I hope it affects everything what we Need to do for iOS Vector icons to work Foreign So let’s go ahead and do a run AOS Uh and why does chargeable recommend us To to use so checkbox status checked Checked and checked on press it checked Ah color Okay size and unchecked color So let’s take this checkbox uh we need To probably import it from react native Paper Uh at the top of our file Uh checked is a state for us it’s a bit Different uh this will render color okay Let’s take the checkbox from here And where we have a button Complete I’m gonna add the checkbox After And instead of checked I’m gonna See if item complete that’s

Of the thing and when we press on it I’m Gonna do the same as we did here Complete to-do list like this And Just like that and now we do not need The button I think Uh checked and checked what’s going on So size 20 unchecked color What’s happening okay but if I Complete to do okay It’s not there unchecked Unchecked color unchecked Ah getting started uh check box check Box uh normal normal Android come on usage checked unchecked Is it correct Unchecked uh how to add property status Disable and press and checked color Unchecked color custom color for Unchecked so if I do unchecked color Blue Uh No I’m checked oh unchecked color here Is black Color theme test ID title uh removed What’s going on status checkbox status Yeah that’s a bit weird uh but I’m gonna Leave it like this and I’m gonna do the On press event on the whole view like When we press on a view I want to check It and that checkbox actually I’m gonna Put it probably near the text itself Like at the beginning here so here I Will do green

Okay and if status is completed then is Checked okay and for this view I can ask Chargpt Um How to handle on press event on a view Um so I already know how it’s done we Need a pressable component so I’m not Going to waste time to hear an answer But I’m gonna check it nonetheless and For the container that represents one Item I’m gonna put the pressable here And I’m gonna move it on press from the Checkbox to the pressable so the Checkbox is simply like um And I conveyor so now if I’m gonna press On this it’s gonna be checked and if I’m Gonna add something it’s gonna be Checked perfect uh Also maybe I want to toggle it back so Complete to do Um So view on press that’s not gonna work In my opinion because the view doesn’t Have an on press event Uh you can also use a touchable past Yeah that’s already right that’s already Better but I’m not gonna do that at the Moment uh we can delete we can add new Stuff uh let’s add the new stuff at the Beginning of a list so I’m gonna change The order of here And I think I do a lot of things without Chargeability Come on

Okay Um and yeah like what I wanted what else I wanted to do Um Someone recommended one of the features That I see is to show the title removed I mean like uh crossed so let’s ask Share the BT how to display that text Uh how is it called like crossed or not Underlined crossed not crossed Word deleted I don’t know in react Native that’s the problem you need to Know what you want chagibiti to uh to Answer you because if you don’t know as I do right now Um striked it’s strike how to display Uh at striked striked text in react Native Striked 12. Trike strike through Strike through okay how to display a Strike Through Texting Rec native come on come on come On Let’s do uh to display Cross or deleted Texting racknet you can use text Decoration line property prop okay this Prop allows text decoration line line Through CSS property Works in web Development Uh my man but that’s not web development Let’s try let’s try text decoration line Line through uh stop please

So four of uh text when we display the Text here I want to add a conditional Style If it if Item Text decoration uh if item is completed That’s going to be lying through Uh otherwise so here like yeah I put a Little bit of my knowledge how to render Conditional styles Nine Okay and when we complete we display the Text as strike through and here for this Container we can also do a line a line A line a line Items where is the line items Center Center Justify come on why why where is the Recommendation oh because yeah justify Content Center Uh align items I don’t know why it’s not Working so I’m Gonna Leave oh oh oh oh Because I need to do it here as well Uh uh I don’t need justify I need no I Don’t need the line items I need only Justify it still doesn’t work so no Worries I think for the text is Align items Items Center Align items okay never mind never mind Um so what else what else we have seven More minutes uh let’s add that time when It was created Um so how to add the created at time uh

For a new to do list object let’s see How to Advocate it at time for a new To-do list object So if we’ve managed to display the time On the screen Then we consider the application done Because the to-do list application Should allow you to Import complete tasks delete them if you Want to to delete and come on we need Created that time for the new to-do list Object Come on come on come on It’s five more minutes Five more minutes please check And request time I would Why why when I need it the most Come on come on come on we need the Intense music Before I start singing No and how to add the Creator time for a New to-do list For a new to-do list item probably Please please Guys don’t oh to add created a time to a New to-do list object you can use date Object in JavaScript here is an example How to do that to-do list name items Created at new date so yeah here it Explains that create that will be Displayed with new date so let’s go Ahead and in the add to-do list item That’s also important like you will need To know where to put it so we are adding

The text with the input values and the Second up parameter will be created at Which will be initialized with a date That it was created at now does it show Us how to display you can also use the Other methods of date objects such as Tostring or to UTC to store the date and Time in different formats how to render It on the screen Um so I’m gonna take it step ahead and I’m gonna render it where where should We render it uh probably like after the Button and we think it’s a bit for the Delete button we do not need this view Anymore I’m Gonna Leave it because jgbt Didn’t tell us to do that so here let’s Do a text uh with uh but not here In the flat list In the Yes actually it’s here Text It’s gonna be Item dot created at And now nobody will have anything but if I’m gonna do Come on Come on come on please I need to see it On the screen missing semicolon where Uh created at Oh my God We are missing semicolon No no you don’t have missing anything Text everything is good come on original Math had apply Eight minutes my heart is racing

Original method what kind of original Method come on what did I do wrong Reload please no Dot created at Save oh my God where Is it here No no please Where I’m gonna stop the server and start it Again you know I am a genius myself It means no no missing semicolon for a Moment you had some other file opened it Opened automatically missing semicolon Way here oh my God I’m gonna Comment out the whole flat list that’s a Very fast debugging uh reload Uh I’m gonna comment how would they use Effects They use effects Uh reload Delete to do Please what did I do wrong git do you Show me anything Foreign [Music] What did I do Come on Complete to do where oh Style no no Styles maybe in the Styles missing Semicolon Tiles Backend.js file you have a type of air Where where back and adjust I don’t have

A backhand backhand Backhand I don’t have a backhand address I’m right Oh no const here const const oh oh oh oh I’m gonna do z z z z uh Uh reload what no no I didn’t fix it I Didn’t fix it No Text oh here text text uh item dot Created created Created at Reload No Oh my God that’s a fail that’s a fail And it does so and I see the bug oh my God you will not believe it it’s right Here where it was showing me a yellow Line all this way and if I add it Everything is broken if I had it No it shouldn’t be um Time’s up You’re gonna sing yeah oh my God I’m so Pissed Why I am so close just I was thinking Like five minutes to display created out Like it’s it’s too easy Come on I feel defeated and I still want to fix It Where is it coming from where did I Forget to Missing semicolon in devtools in the Devtools not modules Did I By mistake did any changes in the node

Modules so if there are issues coming From node modules I’m gonna go ahead and Do air ram RF node modules to remove Node modules and install it again npm Install Uh yeah just npm installed Oh my God All right yeah that’s The sad part about it I still see the syntax error missing Semicolon in react Dev tools No no oh that was from the previous one Uh now let’s try Npm start I’d be so pissed that The application was actually working Uh yeah the application I think was Actually working it doesn’t Objects are not valid as a react native Child Created at Dot to Um UTC string Or how No it was recommending us created that Format Oh this is with enthl Two UTA two string two UTC string oh it Should be a question mark yep here as Well like some of them do not help now It has like Friday And so on Uh and I think that yeah guys let me

Know ideas for songs and I’m gonna sing It in a moment but I want to put them to To make this application look a little Bit better uh I want them checkbox To be after the text or better with text Before the checkbox just like this Um Size 14 I don’t know something like that Not sure why it’s so up there Size doesn’t exist Does not exist on checkbox what do you Have Checkbox Status color theme and that’s it it Doesn’t have a size I don’t know why it Thought it has a size Here what do you want uh Uh quick fix Disable uh I don’t want it All right so here we have our Application Um it’s working One two three I add something we’ll Um Persisting work as well With the dates and so on and I find it’s Not a function Oh because created add Maybe we need to do a new date here Because created that when we read it From them From the storage that created the date Yeah I’m gonna do it like this when we Read it from the storage the created it

Is was a string so we were not able to Run two UTC out of that but now it works With new ones And it should also work with the ones That we read from the storage right away Yes it does Uh with delete button uh I’m wondering If what will it say like Um How can I implement or Yeah how can I Implement Swipe to delete features in react native All right guys so uh this was the Experiment uh we’re gonna see maybe we Can add some other features if you’re Interesting but that was uh everything That I wanted to do today Um It was a very fun challenge trying to Act as a beginner and try to use an AI To build an application and yeah like What have we learned out of this Experience so far Um we have learned yeah stay tuned by The end of this live stream for for the Promise song we’re gonna do that Um by Van yeah we I already see some Interesting ideas like Cucaracha is it a Christmas song I Don’t Know Um so what I wanted to say is that It turns out that you still need some Knowledge of a technology that you are Using in order to understand basically What code to copy you cannot simply and

Blindly go ahead and ask chargeability To build you an application and just Copy paste things around that might work For like simple use cases but when you Get into a little bit more customizable Features and things that you want to Build the way you want them to look in That situation you actually need to have A lot of context around react native and Allow War around them the technology That you are using And you need that That knowledge about that tool in order To yell like as I said to know where to To copy the code where to put it from to Be able to detect bugs because we saw That chargeable team uh even by default Was producing some bugs here and there Because it’s not perfect but why it’s Not perfect because it was taught based On the code that we developers wrote so Yeah like various different code there Is outdated code And I think for that reason we as Developers should not be threatened by AI so far Um at least like yeah like for this for This time I don’t see AI as our enemy I See it more as our friend So basically yeah like it’s not here to Replace our job it’s here to help us and Also it’s here to open new opportunities For us I think instead of yeah like Um what we did today asking jojobt to

Help us build an application this is Just one use case you can build so many Things using chagibi team and you can Take charge gbt functionalities and the Ability that it knows everything and Implement a business on top of it Judgmenting is a very general uh AI Model and It is our job as developers to take this Technology and to put it and to solve Real problems with it go ahead and Brainstorm like what ideas you can build With it if you’re interested on how you Can Implement cha gbt and open AI in a Project for yourself go ahead and check Out this video we will leave it Somewhere here from the previous week Where we learned and built a fully Functional application with cha gbt we Actually haven’t built one we built two Application one web application and one Rec native application and both of them Are connected to the same back end that Is connected to chargeability and is Providing Christmas gift ideas if you Haven’t checked that video out make sure To do that because it’s a very Insightful video it shows you step by Step how you can implement it as well So yeah that’s that’s my take at this Moment uh it’s there is so many Opportunities out there that we can Implement using charge gbt uh and it’s a It’s a thing that I would love to

Explore more and if you’re interested Let me know Down Below in the comments What other projects you’d like me to do And actually I was thinking about this and I’m gonna Do it here today I know with a lot of People Uh in the comment sections want me to Build an application with flutter and I Haven’t done that so far I have never Worked with flutter Uh and my day is if this video gets 1000 Likes then I’m gonna do a similar style Of this video however in flutter and What I’m more excited about that video Is Today I had some knowledge and Experience with react native and this Challenge and even though I had this Experience I failed the challenge and I Will do that I will sing the song in a Moment but Um my question is how can a beginner in A new tool use this and will it actually Be that useful because I think That yeah like I used a lot of my Knowledge and experience today and we Followed this Um if you haven’t wrote uh reacting if You haven’t built a rack native Application yourself I’m not sure and I Really doubt that chagibiti will be able To meaningfully help you Um do that so if you’re interested me to

Build react native applications make Sure to check out our playlist and our Tutorials on our channel uh we have a Bunch of project build tutorials step by Step where we explain react native and If you are at a point where you already Build a couple of tutorials from our YouTube channel and are ready to advance To the next level as a full Stack mobile Development developer then check out this is our premium Courses that is taking you by hand and Teaching you the full life cycle of Building an application from the drawing Board implementing the user interface With react native building complex Designs animations with complex things And when putting it together with a Connecting with a backend designing the Back end implementing everything Improving the performance packaging it For production and finally delivering it To the users you’re gonna learn all of This process in the course so if you’re Interested make sure to check out the Link in the description because the Enrollments are currently open Uh and so guys let’s see Um what ideas do we have Or what questions so I see La Cucaracha Uh remember power tools did not replace Carpet Carpenters exactly uh I think That we should not be afraid of Disruption because that’s the only way

Uh forward because it would be very Selfish from our side to say oh we don’t Need all of these disruptions because It’s gonna replace our job But why do you feel so entitled to have All of the Innovations like phone Computer internet and all of this stuff Um when the creation of the innovations That we are using today also contributed To a lot of jobs being lost So yeah think about this and We should embrace we should adapt we Should learn we should befriend have the AI because in future like we might use It more much more often than you think Oh ask chargerbt what song to sing That’s a good idea Um I okay let’s see I lost a challenge To my beloved community on YouTube I Have to sing a Christmas song Suggest me a popular Christmas Song To sing and show me The lyrics of one how’s it called like Paragraph I don’t know one Yeah I’m gonna do it like this let’s see Uh I I love your idea David like to ask Jgbt to do something nowadays everything That we have to brainstorm uh with our Team like uh for some reason I’m always Like going back to how we were doing Before and trying to think for example

Even for this video that you are Watching right now Um the way we came up with a thumbnail And the title was first we have idea we Started brainstorming with everyone in The group chat what would be the title I Was um Um yeah I was suggesting a couple of Them but nothing really clicked and then Catalin which is our video editor he’s So uh he’s so on chagibiti he’s using so Much and yeah like he’s like let’s ask Jajibiti to uh to think about of a title And Vinci LGBT gave us like 10 titles That were all so good and so catchy Um and yeah like we we chose one of them And we went ahead after that we had to Do the thumbnail again we asked rgbt What you do for a thumbnail for this Video and it recommended us some ideas Even though like we didn’t listen fully But it had like very interesting ideas To and to to do so yeah we are we Already see the impact like we I got Started uh with chagibit I mean I Started learning about it a couple of Weeks ago and now we already use it in Our day-to-day job Uh isn’t it beautiful I think it is uh It’s making our life easier it’s making Our job easier it’s giving us new Possibilities and I think that’s that’s Really exciting Uh do you have a tutorial about how to

Create responsive design we do not have That at the moment but it’s in our list Of tutorials so uh guys we have one Popular Christmas song that you could Sing is Jingle Bells here are the lyrics Oh my God I’m gonna have to do it so Look what we’re gonna do We’re gonna sing We’re gonna sing and the worst part About this is that we’re gonna sing uh Without any music because that’s gonna Be copyrighted so that’s gonna be even Worse so all right I’m gonna sing only The first part I need a lot of water Hmm Um All right so here we go guys today I Lost a challenge on YouTube uh because I Haven’t managed to build an application Using chargeability in one hour what a Bad developer even with an AI uh in the Help I failed miserably to build that in The last seconds and it was a very Stupid mistake I just had to reinstall The application here we have here is Your song that I promise In a one horse open sleigh over the Fields we go laughing all the way Belson Oh my God what are these words bells and Bobtail ring making spirits bright what A fun it is to write and sing a slaying Song tonight jingle bells jingle bells

Jingle all the way I am going home thank You for watching guys and I will see you Next Friday Also here at 3pm JMT battle Super cringe sorry for that

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *