Prerequisites
Getting started with React Native requires the following:- Node.js: Use Node.js as the JavaScript runtime environment.
- npm or Yarn: Install these package managers for JavaScript.
- Android Studio: Use Android Studio as the IDE to compile and run your Fire OS apps locally.
Configure Android Studio
You must configure Android Studio and its command line tools. To configure Android Studio-
Set your
ANDROID_HOMEenvironment variable. For OS specific instructions, see How to set environment variables. - Install the Android Tablet emulator from the Virtual Device Manager.
Build your Fire tablet app
To build apps for Fire tablet with React Native, you must create a new project with theexpo package installed.
To create a new project
-
At the command prompt, create a new React Native project with the
expopackage installed.
Run your project on the Android tablet emulator
You can launch and run your project on the Android Tablet emulator. To run your project on the tablet emulator-
At the command prompt, list the available Android Virtual Devices (AVD).
-
Launch the Android Tablet emulator.
-
Navigate to the project directory.
-
Run the app using
npx.
avd emulator using a local development server and Expo Go. You don’t have to create the Android build.
Run your project on a Fire tablet device
In order to run your project on a Fire tablet device, you must first connect your tablet usingadb.
To run your project on a Fire tablet device
- Connect your Fire tablet. For instructions, see Connect to Fire Tablet through ADB (Fire Tablets).
-
Check that your device is connected using
adb.A list of attached devices is returned. -
Navigate to the project directory.
-
Run a development build on your target device (for example,
-d KFTRWI).
android directory. You can verify that your Android builds are optimized for tablets by checking that your app is using the Android leanback features in the Android manifest file.

