This example app showcases the features of the react-native-autoplay library.
-
Install dependencies:
yarn install
-
Run the app:
-
iOS:
yarn ios
You can test CarPlay with the iOS Simulator or with the CarPlay Simulator app, which is available as part of the "Additional Tools for Xcode".
-
Android:
To run the app on Android Auto, you need to set up the Desktop Head Unit (DHU). For more information, see the Android Developer documentation.
You also need to forward a port to the DHU. You can use the
adb_port_setup.shscript located in the root of this project.../../adb_port_setup.sh
Then, you can run the app:
yarn android
-
This example app demonstrates how to:
- Use the
MapTemplateas the root template for a navigation app. - Add map actions and buttons to the
MapTemplate. - Simulate a navigation session with maneuvers.
- Use various templates, including:
GridTemplateListTemplateSearchTemplateInformationTemplateMessageTemplate
- Display content on the instrument cluster using
AutoPlayCluster. - Display content on the CarPlay dashboard using
CarPlayDashboard. - Access telemetry data on Android Auto.
- Use voice input on Android Auto.

