My first React Native App

Why did I write a React Native app? I’ve always been language agnostic, there’s no single language that rules them all. Each language has its feel, syntax, purpose, and style. There are languages that prefer a functional programming style, others that prefer objects. There are stateless and stateful paradigms. While the time involve was brief, there are still a lot of significant hurdles I had to overcome in order to write this app.

The first hurdle, myself. I prefer to build applications that serve a purpose, and the more purposeful the app, the more enthusiastic I am about coding it. I do see my foray into React Native as an investment towards building something more complicated in the future. You can’t even imagine how many things I’ve built that I don’t feel comfortable sharing, things I feel comfortable sharing is but a small subset.

Without further ado, here’s a preview of my Reactive Native App that I compiled for Android.

I have a weird sense of humor. “Meet Jackson’s Random App”. I do enjoy those Mensa puzzles.

Why a coin flipper? Sometimes, you’re 50/50 on something, and you just need a coin flip, with everything so digital now and days, you’ll be surprised how often I find myself without cash and coins. Thus, a digital coin. Then you might ask, why a random number generator? Again, a random number between 1-100 might just be the most unbiased way to decide who gets the say in a group orientated activity.

My first version was just a coin flip and the result, it was to the point, but then I realized, after pressing the button, whether or not it’s my second HEAD result, or perhaps my app did nothing, so, I added a delay and a “flipping” screen.

I also did the same for my random number generator.

I’ve spent about a day on it, a good chunk of it was simply ramping up my dev environment. I had to configure a windows machine, as my development environment, and I had to ensure that all the piping between my OS and the phone was kosher.

Below is a link to the source code, pretty boilerplate stuff for the most part, and if you trust me enough, the compiled APK is also in the repo, if not, you can compile the Reactive Native code yourself and go from there:

https://github.com/jackfucius/randomReactNativeApp

Leave a comment

Your email address will not be published. Required fields are marked *