This is a basic React Native application utilizing the AWS Rekognition API for text recognition using the built in device camera. Built using Expo🛸
- AWS Account
- NodeJS and NPM
- Yarn
- Expo-CLI
- Device with Camera
Clone repository into project directory
$ git clone
Move into project folder
$ cd text-recognition-app
Install dependencies
$ npm install
$ yarn install
Install AWS Mobile CLI
$ npm i awsmobile-cli -g
Configure the AWS Mobile CLI to use your AWS Credentials
$ awsmobile configure
Now setup your backend
$ awsmobile init
Source Directory - ext_code
Distribution Directory - build
Build Command - npm run-script build
Start Command - npm run-script start
AWS Mobile project name - choose-a-name
Above details required for later use👨🏾🏫
Enable the Cloud API
$ awsmobile cloud-api enable
Push AWS Mobile Configuration
$ awsmobile push
Set the appropriate permissions for your app
In your AWS Management Console:
IAM -> Select Roles -> Select created Role Name -> Permissions -> Search: Rekognition -> Add: AmazonRekognitionFullAccess -> Attach Policy
Permissions Added!!!🚀
In folder ext_code edit file api.js
The following fields need to be changed in order to align with the region you have chosen to use when setting up your backend:
endpoints: "endpoint matching the region chosen in backend setup"
region: "region chosen in backend setup"
Run the application🧙♂️
$ yarn run start