REGISTER

Announcing Rebolt

Mike Grabowski
2018-07-01

blog content

Need help with Performance Optimization? 
hire us
Need help with Super app development
hire us
Need help with React Native?
hire us
Need help with migration to React Native?
hire us
Our React Native EU Conference is back
register nowlearn more

Callstack’s take on React Native at a scale

At Callstack, we keep challenging ourselves on how to write better mobile apps in a cross-platform way. In fact, it is our mission to help you and companies to launch their products for everyone, at the same time.

For the past few months we have been experimenting with Reason at Callstack. We were so excited by the opportunities it gives when it comes to developing mobile apps that we wanted to share our excitement with the community!

As a first step, we focused on making the on-boarding process as easy as possible.

All in all, it shouldn’t be any harder to use React Native with other languages than Javascript. As a next step, we created a special Reason project template that can be used with <rte-code>react-native init<rte-code> to make a different than standard Hello World application out of the box.

That was just the beginning.

Today, we are really happy to announce an initial release of Rebolt — our take on developing React Native applications in Reason. Initially started as a fork of <rte-code>bs-react-native<rte-code>, it became an independent project as differences in both APIs and future roadmap started to become noticeable.

It ships with bindings to almost all React Native APIs and contains minor, but backwards-compatible, differences focused on developer’s efficiency. That means the upgrade path from <rte-code>bs-react-native<rte-code> should be rather trivial and free from any advanced code modifications.

Why forking?

First stable release of Rebolt (v1) will always be a fork of <rte-code>bs-react-native<rte-code>, that is, bindings to React Native with a slightly different API. We will continue to maintain that version for the foreseeable future and keep it up to date as new React Native versions get released.

We decided to fork the project to be able to accelerate its development in accordance with our view on its future. We would like to thank all 44 contributors that spent their time to make what bs-react-native became at the time of our fork. The whole project is still MIT licensed and we are more than happy to see our work back-ported, forked and improved further by the community.

The future of Rebolt

We have ambitious plans for the next release of Rebolt (v2) that we plan to announce later this fall (hint: React Native EU that we organise at Callstack is naturally aspirated date for such announcement to happen. Make sure you have your ticket). As an open-source first company, the entire development will be done in public, including meeting notes and roadmap. You can subscribe to our repository to track further updates and join our Discord to stay up to date. You are all invited to contribute!

Long story short, our plan is to create a whole-new framework written in Reason that shares native part with React Native (hence it is fully compatible with React Native existing ecosystem). Functional capabilities of Reason and its OCaml build environment make it a really interesting playground for experimenting with native development. We want to keep the things that JavaScript does well and replace the bad parts with Reason and use its power (native compilation) to solve the problems that react native can’t solve because of JS. We will keep exploring those ideas in the repository while we complete our work on the v1 of Rebolt.

Given the absence of Javascript, Rebolt is going to use Haul — alternative packager for React Native, developed at Callstack — for bundling your source code. It’s based on Webpack and provides a much more universal workflow than Metro bundler. Community is already using it for bundling their web and mobile applications and it’s yet another building block to make our vision real.

It is also going to feature a whole-new command line tool that is easy to get started and offer beautiful DX across available commands. This is what rnpm was meant to be from the very beginning. I never managed to finish it with Kureev Alexey and the only part that we created, link command, was merged to the core and became react-native link. We now wanted to use this as an opportunity to improve the link itself to support the latest native capabilities that were developed over the course of the past 3 years inside the React Native repository. We also want to make the experience working with native code more seamless, bringing it closer to CRNA or Expo, but without 3rd party software. This part is going to be compatible with React Native (in Javascript) as well. That means, regardless of your view on Reason, you are still going to get a whole-new experience when it comes to building mobile apps.

Promises, promises

We know the plan is ambitious. Everything that we do is defined by our mission. We want to make the cross-platform development as easy and stable as possible, learning from our experience in this field and from what other companies have recently shared.

We hope that Reason is what brings us closer to achieving this goal. If Rebolt does not make it happen, I will not consider this as a failure. It’s going to be a sign that there is a better alternative on the market for solving that problem.

And we will keep chasing that solution.

Author:
Mike Grabowski
Co-founder & CTO of Callstack. Mike is a React Native core contributor and author of many libraries. When he isn't working, he is on a race track.
arrow icon
MORE posts from this author

Bundle React Native apps using Webpack features

Discover Re.Pack – a Webpack-based toolkit that allows you to build a React Native app with the full support of the Webpack ecosystem.

learn more

More posts from this category

Ensure your React components perform as intended as your app grows

Discover Reassure - our open-source library that allows you to run performance tests measuring the average rendering time of the in-app components.

business benefits

Performance Optimization

To stay competitive, you need a high-performing app. Improving React Native performance can bring your company many business and tech benefits. To learn more about it, check the page entirely dedicated to React Native Performance Optimization. Discover a real-life example of React Native optimization we performed for Aaqua, a Singaporean platform that enables global users to share their passion through groups.

Bundle React Native apps using Webpack features

Discover Re.Pack – a Webpack-based toolkit that allows you to build a React Native app with the full support of the Webpack ecosystem.

business benefits

Why React Native?

Building an all-in-one platform can bring your company a lot of business and tech benefits like seamless UX experience, global reach, brand growth just to name a few. To learn more about the benefits of using React Native to develop super apps, check out the MoMo case study. Where we helped improve app's performance by migrating architecture to Re.Pack.

stay tuned

Subscribe to our newsletter

You may unsubscribe from these communications at any time. For details see the Privacy Policy.