Today at Connect, we announced Visual Studio Mobile Center, a collection of free services designed to help iOS and Android developers deliver 5-star apps more quickly by automating all-the-things (e.g. builds, testing, distribution, codepush, crash reporting). On this blog, we’re pleased to announce that React Native is supported as a first-class citizen of Mobile Center, side-by-side with native languages like Objective-C, Swift and Java.
This is our first step toward realizing a vision that gives React Native developers an entire toolchain built around development velocity. Through shared code, test automation, web-like publishing, codepush-aware analytics and crash reporting, we want to bring React Native to the mainstream.
When our team first conceived Mobile Center, we wanted to deliver an experience that feels at-home with other iOS and Android development workflows. To that end, we established a set of six guiding principles that would shape our service:
- Great developer experiences. Docs, setup, onboarding and support should remove complexity and help you build great apps quickly.
- Public APIs for everything. All services should be accessible via APIs. Our CLI, SDK and dashboard are all consumers of the same APIs available to you as a developer
- Great UX, beautiful UI, very fast response times
- Unix-like philosophy of interoperable, single-purpose tools (“beacon services”)
- You own your data
- Every service should enable exemplary mobile experiences for your business
We hope you’ll find Mobile Center meets the spirit of these principles throughout the service. Let’s take a quick tour of what’s available today, as we embark on the journey to build a better experience for React Native developers everywhere.
Build & Continuous Integration
If your React Native application is hosted on Github, Mobile Center can be configured to automatically build and sign your React Native apps on every commit. Getting set up is very simple and most of the configuration is automatically detected.
While only iOS continuous builds are supported today, we are planning to add support for Android builds soon. We are also working on adding support to run Jest tests during every commit for React Native applications.
Building React Native applications generate .ipa files in addition to artifacts like symbols and source maps that can be fed into the next steps of the pipeline. The .ipa files built using this continuous integration system can also be distributed to end users or beta testers using Mobile Center.
We are also working on better integration with the Code Push service. If the resulting build artifacts do not contain any native changes, you will be able to automatically upload them to the Code Push deployment service.
Support for building React Native Android apps will be available soon.
Crashes and Analytics
To get more out of the mobile apps, Mobile Center also offers two SDKs to collect application crash information and analytics about usage of the application.
The Analytics SDK lets uses send events back to Mobile Center that can be visualized to assist vital business decisions. It also helps collecting information like device information, active users, session length, etc. We are also working on integrating the SDK with React Native navigators to enable advanced features like page tracking and user workflows.
The features described above are just the start of the set of “DevOps” tools that we are building for React Native. Some of the other features planned include bringing Code Push experience into this single dashboard, and enabling analytics and crash tracking alongside Code Push versions.
Testing is a key part of ensuring the quality of React Native applications. We are exploring the possibility of using Jest to perform snapshot based, record/replay integration testing that can be run on multiple devices on the cloud. Using Enzyme and Jest would provide an integration testing API that is much more tailored for React Native than Appium.
We are already working with members in the community who are trying out these services. We would love to hear how we can make your React Native workflow more productive – please sign up for Mobile Center and we would love to work with you.
Come build with us: Request an Invite or talk to use on the #codepush channel on the React Native Discord.