Stacknavigator & Typescript with Expo [2021]

  Рет қаралды 2,977

The Nerdy Canuck

The Nerdy Canuck

Күн бұрын

In this video, we take a basic expo template and add a stack navigation system to it!
Command(s) used:
expo install @react-navigation/native
expo install @react-navigation/stack
expo install react-native-gesture-handler
Github: github.com/joe...
Video Info
Music by Tesko / prod. THXMOS:
/ @prod.thxmos6970
Support
Like this video? You can show your support by buying me a coffee ☕❤️: www.buymeacoff...
Socials
Github: github.com/joe...
Twitter: / thenerdycanuck
About The Channel
The knowledge that I share here is mostly from my personal experiences. I wouldn't say I'm a 20 year professional, rather I am just a DevOps / Software Engineer with a lot of experience who enjoys teaching what I know in my spare time. I believe that sharing some of my basic knowledge on this platform can help others get started. There are many ways to program something and the videos you see here are my take on the NodeJS / Typescript / and sometimes Unity world. If this channel helps you learn, or helps you think differently then my job is done 😊.
#reactnative #navigation #typescript

Пікірлер: 23
@lluis9650
@lluis9650 2 жыл бұрын
Thanks for the tutorial, it's exactly what I needed and it was straight on point!
@hadarpinto
@hadarpinto Жыл бұрын
besides the use of logging, iv'e implemented as the video, and get a rendering error asking if i used navigation container.. any idea?
@TheNerdyCanuck
@TheNerdyCanuck Жыл бұрын
It's possible my solution is outdated. What seems to be the error
@dennisgonzales9521
@dennisgonzales9521 2 жыл бұрын
Thanks! [EDIT]: Question at 5:40 what's the use of importing the 'react-native-gesture-handler'?
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
It's required by stack navigator, im assuming for phones that use movement as actions
@dollnguyenstudio9528
@dollnguyenstudio9528 2 жыл бұрын
I am still not agree with the interface IRouterProps, hope someday you will figure out the similar interface of react navigation
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
Please let me know what else you would like me to cover :)
@makspetrov4975
@makspetrov4975 Жыл бұрын
Good! Thanks! )
@bashenko
@bashenko 2 жыл бұрын
Thanks for the video. But how do you edit header options? Like header, leftButton, bg, etc? How would you pass these options?
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
Good question, I can look into it but I did a quick google and it seemed straight forward. Let me know if you need a specific example.
@bashenko
@bashenko 2 жыл бұрын
​@@TheNerdyCanuck Thanks for the reply! Nah I mean I know how to do that, It's just how do you pass those params in your approach? Usually it is ```options: { ... ... }```. It's just... where shall I pass these options?
@bashenko
@bashenko 2 жыл бұрын
@@TheNerdyCanuck So yes, If I could please ask you to point me to the answer, It would help a lot! Thank you!
@bashenko
@bashenko 2 жыл бұрын
Ok the answer is simple. Just add: navigation.setOptions({ headerTitle: 'youTitle', }); Or whatever option you want in the component screen
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
@@bashenko Nice, I haven't looked at it yet but that seems right to me
@FF-ux1co
@FF-ux1co Жыл бұрын
I would like to add an info button in the 'headerright' of the Home Screen, how and where can I add it to the code??
@FF-ux1co
@FF-ux1co Жыл бұрын
const HomeScreen: React.FunctionComponent = (props) => { const [logging] = useLogging('Home Screen'); const { navigation, route } = props; useEffect(() => { logging.info({ navigation, route }); navigation.setOptions({ headerRight: () => navigation.navigate('Info')} /> }); }, [navigation, logging]); return ()
@steven7936
@steven7936 2 жыл бұрын
didnt' work in the end, I dont know why, I was hopign for something a lot more simple.
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
What was the error? I actually have an issue with this as well
@usmanmughal5916
@usmanmughal5916 2 жыл бұрын
Make a nextjs project with charts for data visualization and react query.
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
Charts js and Google charts would be good for that too!
@usmanmughal5916
@usmanmughal5916 2 жыл бұрын
@@TheNerdyCanuck Yea, but this project created by you will be great
@wildhandb
@wildhandb 2 жыл бұрын
'Stack.Navigator' cannot be used as a JSX component.
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
Whats you react version?
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 27 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 12 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
React Native Typescript Stack Navigation #15 | Dr Vipin Classes
27:47
Dr Vipin Classes
Рет қаралды 1,6 М.
Deploy NodeJS Apps with Typescript to Heroku [2022]
10:19
The Nerdy Canuck
Рет қаралды 9 М.
Introduction to react native navigation with Typescript
34:12
Noor Mohammad
Рет қаралды 4,7 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
Flutter vs React Native vs. Swift/Kotlin In 5 Minutes
5:20
Your Average Tech Bro
Рет қаралды 145 М.
React Native Login with JWT Auth Context
24:59
Simon Grimm
Рет қаралды 64 М.
Introduction to react native navigation
10:45
Hitesh Choudhary
Рет қаралды 40 М.
React Native Tab Bar Routing with Expo Router
11:29
Simon Grimm
Рет қаралды 75 М.
Luminous screen protectors 🔥 #iphone ##screenprotector #android
0:19
САМЫЙ ДЕШЕВЫЙ iPhone
10:08
itpedia
Рет қаралды 464 М.
Hardware tools repair tool high performance tool
0:16
Hardware tools
Рет қаралды 4,4 МЛН
Nokia 33-10 ☠️ #shorts
0:33
Apollon 🗿
Рет қаралды 577 М.
Давайте поцарапаем iPhone 16 Pro Max!
0:57
Wylsacom
Рет қаралды 4,3 МЛН
Секретный пароль...
0:17
Сокровищница Фактов
Рет қаралды 399 М.
Tesla Coil Testing #experiment #shorts
0:29
Light K
Рет қаралды 8 МЛН