Chapter 11. Building Native Mobile Apps Using Bolt and Expo
Bolt.new supports native mobile apps through a partnership with Expo, a framework and tooling for developing React Native apps. This integration allows developers to build iOS and Android applications entirely in the browser by simply describing the app, merging the power of React Native with Bolt’s AI-driven development.
The Expo framework provides a set of libraries for accessing native device features like cameras and sensors and a development app, Expo Go, for live previews on actual devices. Bolt integrates with Expo by running the Expo development environment inside StackBlitz’s WebContainers (discussed in Chapter 10), meaning you can create, run, and preview React Native apps directly in your browser.
In this chapter, we will explore how to leverage Bolt’s Expo integration to create a mobile app from scratch. We’ll walk through building a location-based weather app and along the way cover mobile-specific features like accessing device location, camera, and notifications; styling with React Native; and testing on devices. Then we’ll try converting your existing Grocery List web app to mobile. As with the other integrations you’ve seen, Bolt handles setting up the project, installing native modules, and even packaging the app for deployment based on your prompts. Bolt’s web IDE lets you inspect logs and errors, and you can use React Native’s debugging techniques (like logging to the console) directly within Bolt. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access