TL;DR Come for the hype, stay for the confidence.

Stage One: The first date

Initial conditions: A legacy app written on top of some WebView hybrid framework, which constantly facing its limitations. A completed web app using "react": "0.12.x" (Hmm, so you can go with JSX, you can use this ecosystem). A conference where React Native has been announced.

Annnouncing React Native

And you’re waiting. Then one day you wake up in the morning, looking in the window at a very gloomy weather outside, open the browser and see the news all over the internet: RN is released and the repo already has a thousand stars.

It’s finally ready to npm install react-native-cli.

Stage Two: Obsession

After first two weeks there is only pure joy in the blood. Challenge accepted! Challenge to use fast-growing project in a pretty early stage. The documentation is inconsistent, but it doesn’t really matter (there is the awesome UIExplorer). Best practices doesn’t exist: doesn’t matter, some of such could be ported from the web, some could be used from other native frameworks. Not enough plugins: you can write a plugin that you need by yourself. Apple has released new APIs for 3D Touch Quick Actions. Not a problem. You need more complicated maps than you get out-of-the-box? Let’s wrap into JS APIs some of advanced native implementation.

It’s inevitable that you soon get your first sensible pull request which could take a few weeks of the fun process of contributing. Important lesson here is how to be more careful, after all. Objective C still scares sometimes, but it doesn’t look weird anymore, rather looks a pragmatic, including patterns, paradigms, idioms which were formed over the decades. It’s a new, unknown language which could teach you a lot and refresh sweet memories of pure C. And there is Swift waiting for you.

You are full of energy. You want to apply somehow your previous experience from JS world. Why ObjC doesn’t have a popular linters like eslint and jscs, which helps to strictly enforce code style? You even try some of them, with no luck:

React/Views/RCTNavItem.m:53:3: ivar assignment outside accessors or init P2


React/Modules/RCTUIManager.m:525:7: long variable name P3 Variable name with 21 characters is longer than the threshold of 20


React/Modules/RCTUIManager.m:1114:1: deep nested block P3 Block depth of 6 exceeds limit of 5

P1=0[0] P2=339[10] P3=545[20]

a hundred of warnings

The community is expanding so fast, that in the next few months it will outgrow its Slack server, and you like it. The only way to keep up with that huge amount of information is Brent Vatne, who sends the newsletter each week and one day you even become part of it.

Stage Three: Routine

So, you’re married now, the honeymoon at Paris has ended a weeks ago. Welcome to the everyday life.

At first, you realise, that React doesn’t solve all problems with performance magically. Regarding you can’t affect UI thread directly, and React gives you cheap updates, there are tons of a potential bottlenecks. Blocking Javascript Thread is one of these.

Speak screenshot

So you profile, enforce pure components, cache reducers, do whatever generic strategy for optimizing the React performance, and always have an option: writing a low-level Objective C.

Wow, such memory leaks from an almost empty project! Brave GC on JavascriptCore struggling with the inexperienced developer.

It’s nice that all XCode’s instruments Chrome Developer Tools finally available for you. And by the way, nothing serious here, just an issue with the environments settings.

Your everyday routine is a forking almost every second react-native-%plugin% out there. Your everyday routine is a writing your own RCT_EXPORT_MODULE. Your everyday routine is upgrading some npm module on the next version.

But at the end it’s getting better and better everyday:

  • RNPlay allows to check your ideas instantly;
  • RNPM is becoming a thing;
  • State management solved for you: use either GraphQL/Relay (Reindex) or Redux + AsyncStorage. Ok, not quite solved, but it’s also just an another routine.
  • Ship your app 10 times per day.
  • React gives you familiar abstractions which feels more right than .xib, UIViewController, AutoLayout, CoreData. And it’s up to you how much of your app would be on the native side.

Stage Four: Inspiration

It’s February 2016. You are working on your sixth iOS app, hoping it would be better than previous ones: like, wizearn or flawless. After all, you’re get inspired for some other projects like and SkeletCode.

You get used to react-native related issues. It’s not a commercial software, and minor bugs are not felt as something unexpected, whereas all conceptual things such as assets management or Navigator develops in the transparent and clear way. (Update from 2017 Boy I was wrong about Navigation).

These very lines are written in Jekyll 3, and that ruby gem doesn’t work great. Some combination of versions of an operation system, Ruby and Jekyll produce an bug affecting new post rendering (future: true). An hour on reading github issues, reinstalling Jekyll, and other voodoo tricks (“Ruby can’t into timestamps”).

I’d rather dig out into Jekyll source code to find and fix that problem by myself. Can I do that in reasonable amount of time? I certainly can with React Native now, and that makes me confident.

INB4; (201x) Stage Five — Oh, see, the trend has changed, there is another cool technology, let’s go there!