Right now we're showing a button to add a new blog posts but ideally we would instead have some kind
of new screen called Create screen or something like that that will allow a user to create a blog post
with a customized title this mockup right here also reflects a blog post having content as well.
Right now we don't have any content around a blog post.
We could very easily add that in.
The other thing I want to point out is that the create option right here the create screen can be accessed
by that little plus icon that should be displayed inside the header of the index screen.
So let's first get started by creating a new component for our create screen and wiring it up to our
stack navigator back inside my editor I'll find my screens directory and make a new file of create screen
dot J.S. and then you guessed it.
Let's do some boilerplate.
It's all import and you add actually we don't have a lot of stuff going on in show screen.
Let's just copy this thing over rather than write all that boilerplate out.
Once again Sean's going to copy over everything from show screen to create just to save a little bit
of time and I'm going to update the contents of this new function to just return
a View with a text of create and we'll update the function name to create screen and the expert defaults
as well to create screen now.
Definitely saves a little bit of time.
We'll leave on all this context stuff right now even though we're not presently using it because chances
are we're going to need to make use of it in just a moment to actually create a blog post.
Now we've created the screen.
Let's go back to our app dot j ust file as usual.
We're going to import create screen from source screens create screen and all wired up to our navigator
object right here as create is create screen OK so not bad.
So as usual we've now got the screen wired up but now we need to actually have some way to navigate
over to it figuring out how to place this icon inside this header right here.
It's give you just a little bit complicated.
So let's first take another quick pause.
Come back the next video and then discuss how to add content into the header.
So I'll see you in just a minute.