Skip to content

MT-RD/amazon_bedrock_expo_chat_app

Repository files navigation

Add Amazon Bedrock Chat Capabilities to a React Native App

The application uses Amazon Bedrock to generate AI-powered chat features and enhance user experiences.

Architecture Diagram

Below illustrates the architecture and process flow for running a React Native mobile application backend in the AWS Cloud.

Architecture and Process Flow

Flow of a mobile chat application using AWS services.

  1. Users access the application from their mobile devices.
  2. The mobile client React chat application interfaces with Amazon API Gateway.
  3. Amazon API Gateway interacts with AWS Lambda to post and fetch the data.
  4. AWS Lambda interacts with one of the Amazon Bedrock models and returns the generated response in a JSON format.
  5. The processed data is then returned to the frontend for display, facilitating content or chat presentation.

Prerequisites

Before you get started, make sure you have the following installed:

Issues

The following packages should be updated for best compatibility with the installed expo version:

[email protected] - expected version: ~5.3.3

Your project may not work correctly until you install the expected versions of the packages.

Run the below command to update typescript to the expected version.

$ npm i typescript@~5.3.3

Create your application

Run the below command to create an app (Uses Expo's TypeScript template).

$ npx create-expo-app amazon_bedrock_expo_chat_app -t expo-template-blank-typescript

Start your application

Navigate to the root folder of your application and execute the following command to start the application.

cd amazon_bedrock_expo_chat_app

npm run ios

When prompted, enter i to open the App in iOS simulator.

Press i │ open iOS simulator

Upon successful execution, you will see your new application running in the iOS Simulator, as shown below.

iPhone SE(3rd generation) - iOS 18.0

About

Amazon Bedrock Expo Chat React App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published