Recently, the alpha versions of TensorFlow.js for React Native and Expo applications were released. It currently allows developers to load pre-trained models and to train new models. Here’s the announcement tweet:

TensorFlow.js provides many pre-trained models that simplify the time-consuming task of training a new machine learning model from scratch. In this tutorial, we’re going to explore TensorFlow.js and the MobileNet pre-trained model architecture to classify input images in a React Native mobile application.

By the end of this tutorial, the app will look like the following:

Sidenote: Previously, I did dip my hands into Google’s Vision API to build an image classification app that determines whether a given image is a hotdog or not. If you’re interested in reading that example, please follow the link below:

Here’s the link to the complete code in a GitHub repo, for your reference.