Livecoding: Building a Real Life Color Picker [Video]
Tag along as this creator makes a real life color picker mobile app with React Native, walking you through his process and coding.
Join the DZone community and get the full member experience.Join For Free
this weekend we set out to build a color picker for real life. grab your phone, point it at a thing, find that thing’s rgb color.
not sure why , but it’s a fun little way to play with react native and device cameras. we found a package called react-native-camera that makes camera integration easy.
import the project, and use it to render a live view of the camera in your app. that was easier than i thought it would be. guess that’s the benefit of being late to the game: others have already built the things that are hard. now you just have to put them together like lego pieces in novel ways.
that’s the main benefit of react native, isn’t it? components that do stuff and fit together. just write a little glue code, and everything fits.
my favorite discovery was quicktime’s movie recording mode. you can show your phone screen on your main screen.
no more this:
isn’t that better? i think it is. it’s going to improve future my livecoding sessions and react native school videos.
hm, this isn’t a very long livecoding recap. could we really have done so little? was i that wasted from running a lot on sunday morning?
and we discovered that even if you’re saving photos temporarily, you still need photo library permissions. forget to ask, and your app will crash. that part was confusing.
but that’s basically it, darn. next time i should drink more caffeine.
here is next day’s follow-up session. that was fun too, we learned that my computer is crazy slow.
Published at DZone with permission of Swizec Teller, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.