Leveling up our screens
Let's see what kind of app we're going to create. I was thinking we could have a screen where it shows our current age down to months, days, hours, and minutes. I mean, that's pretty cool, right? Whenever someone asks you your age, you'll be able to just take your phone out of your pocket and show them the screen you've created. Let's get started:
- Let's open up our terminal and create a new
expo
managed project just like we always do, using the following command:expo init RealAge
Now let's open up our project and start writing some code!
- Let's go straight to the
App.js
file and delete everything in there besides the imports and StyleSheet. I always leave the StyleSheet because I'm a fan of centered text. - Now let's rewrite the
App
component as aclass
component. - Now let's open up our Expo app by using the following command...