Skip to content

This project demonstrates how to develop a Turbo Module in a React Native TypeScript app for Android and Fire OS devices. πŸš€πŸ“±πŸ”₯ The Turbo Module, called RTNDeviceName, returns the native device name. The TMDemo app implements the Turbo Module and displays the device name. πŸ“ŸπŸ“±βœ¨

License

Notifications You must be signed in to change notification settings

AmazonAppDev/reactnative-turbo-module-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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:

About

This project demonstrates how to develop a Turbo Module in a React Native TypeScript app for Android and Fire OS devices. πŸš€πŸ“±πŸ”₯ The Turbo Module, called RTNDeviceName, returns the native device name. The TMDemo app implements the Turbo Module and displays the device name. πŸ“ŸπŸ“±βœ¨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published