Skip to content
Swizec Teller - a geek with a hatswizec.com

Livecoding recap #40: react-navigation with React Native

This is a Livecoding Recap – an almost-weekly post about interesting things discovered while livecoding. Usually shorter than 500 words. Often with pictures. Livecoding happens almost every Sunday at 2pm PDT on multiple channels. You should follow My Youtube channel to catch me live.

I channeled my inner Darth Vader yet again. Still don't know why my sound is garbled on YouTube, but works on LiveEdu. They're both using the same stream 😕

This weekend, I wanted to try out react-navigation because I've heard a lot about it. Supposed to be the big new (official) thing since Navigator was deprecated in April.

So I set out to build a travel app. You say where you're going, app tells you what to pack. I have no idea where I'm going to get lists of what to pack for different situations, but it seemed like a good way to try react-navigation.

Looks a bit like this:

Pictures are from Flickr. I figured out how to do that in my Music App tutorial. Maybe I should make an opensource "show random pretty pic from Flickr" component. Seems useful 🤔

Anyway, pics from Flickr, navigation done via react-navigation, lists of choices done by hand. No biggie there… still not sure how I'm going to get packing recommendations.

I wonder how difficult it would be to add crowdsourcing to the app… a bit of Firebase, some setup, a call or two… hmmmm. We'll see.

Either way, expect an in-depth tutorial about all of this on reactnative.school come Tuesday. Maybe Wednesday if I decide to wait for my new laptop to arrive.

Really, the hardest part of today's livecoding was dealing with my computer. Damn thing is so slow when running OBS and connecting to my DSLR that it took 15 minutes to compile the initial blank app.

And animations were slow in the iOS simulator and interaction was painful and I could barely type in the chatroom and even the Flickr images were taking way too long to show up. Just watch the stream video; it's painful as hell.

Reminds me of playing Resident Evil on my 166MHz machine with 16MB RAM back in middle school. I'd read books during the door opening animations.

These ones:

Yeah, that used to take 5 minutes on my computer in middle school :D

Great game tho. Much fun.

So yeah, fun livecoding, we made something pretty, then I ragequitted because I couldn't deal with my laptop anymore. Thank <insert nerd deity> that I'm getting a new one in the mail this Wednesday.

Then all will be better, right?

Did you enjoy this article?

Published on June 12th, 2017 in Livecoding, Technical

Learned something new?
Want to become a high value JavaScript expert?

Here's how it works 👇

Leave your email and I'll send you an Interactive Modern JavaScript Cheatsheet 📖right away. After that you'll get thoughtfully written emails every week about React, JavaScript, and your career. Lessons learned over my 20 years in the industry working with companies ranging from tiny startups to Fortune5 behemoths.

Start with an interactive cheatsheet 📖

Then get thoughtful letters 💌 on mindsets, tactics, and technical skills for your career.

"Man, love your simple writing! Yours is the only email I open from marketers and only blog that I give a fuck to read & scroll till the end. And wow always take away lessons with me. Inspiring! And very relatable. 👌"

~ Ashish Kumar

Join over 10,000 engineers just like you already improving their JS careers with my letters, workshops, courses, and talks. ✌️

Have a burning question that you think I can answer? I don't have all of the answers, but I have some! Hit me up on twitter or book a 30min ama for in-depth help.

Ready to Stop copy pasting D3 examples and create data visualizations of your own?  Learn how to build scalable dataviz components your whole team can understand with React for Data Visualization

Curious about Serverless and the modern backend? Check out Serverless Handbook, modern backend for the frontend engineer.

Ready to learn how it all fits together and build a modern webapp from scratch? Learn how to launch a webapp and make your first 💰 on the side with ServerlessReact.Dev

Want to brush up on your modern JavaScript syntax? Check out my interactive cheatsheet: es6cheatsheet.com

By the way, just in case no one has told you it yet today: I love and appreciate you for who you are ❤️