One of the hottest mobile app development tools is now finally available on Amazon Web Services. React Native may be a young technology, but it is growing at a rapid pace.
And is now available as one-click starter project on AWS, open source, and all.
It also comes with an automatically provisioned infrastructure for serverless computing, using the Amazon Lambda service, along with authorization, user registration, image storage, database operations, and access to relevant APIs, among others.
AWS shared the good news in a blog post earlier this week, providing details on how the functionality is provided for those that want to dive in:
“The project contains a starter application that can be run with a single click, using the Deploy from GitHub button capabilities of AWS Mobile Hub. After deployment finishes, the starter can be run locally using npm or yarn on either iOS or Android.
The project demonstrates user sign-up and sign-in flows along with MFA [multi-factor authentication] as a ‘Pet Tracker’ application, allowing you to upload pictures of your pets along with some data (name, age, breed, and gender). The pictures are stored in an S3 bucket. The bucket can only be accessed by the user. Similarly, the records corresponding to these pictures are stored in an Amazon DynamoDB table on a per-user basis as well. This is protected by a serverless infrastructure that uses Amazon API Gateway and AWS Lambda.”
This is how the pet tracker app actually looks:
Developers interested in getting their hands dirty must have an AWS account, NodeJS with npm and the React Native CLI tool. The optional AWS CLI and Watchman file-watching service don’t hurt either.
The GitHub repository provides guidance on using registration and login components, as well as pointers on accessing cloud REST APIs, storing images, video, and other content on AWS, along with details on modifying cloud logic with Lambda, and more.
Its code is parked here.