Skip to content

Latest commit

Β 

History

History
63 lines (38 loc) Β· 2.34 KB

File metadata and controls

63 lines (38 loc) Β· 2.34 KB

React Native Turbo Module Example

This project is a demonstration of a simple Turbo Module embedded in a React Native TypeScript App.

Turbo Module Demo

You can find the step-by-step guide the implementation here.

πŸ‘©β€πŸ’» Installing the app

  1. Clone the demo app repository: git clone https://github.com/AmazonAppDev/reactnative-turbo-module-demo

Within the folder you will find 2 subfolders:

  • RTNDeviceName which is a Turbo Module that returns the Native device name
  • TMDemo which is a TS app that implements the TurboModule and displays the device name
  1. From the TMDemo folder, install the dependencies by running:
yarn

This installs all the dependencies.

  1. From the TMDemo folder, add the TurboModule to your app by running:
yarn add ../RTNDeviceName
  1. From the TMDemo/android/app/ directory, generate a debug keystore by running:
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

πŸ’» Running the demo

  1. Connect your Android Device / Fire tablet device following these instructions.
  2. From the TMDemo folder, run the app using the command:
yarn android

Get support

If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.

If you have questions, comments, or need help with code, we're here to help:

Stay updated

Get the most up to date Amazon Appstore developer news, product releases, tutorials, and more: