Skip to content

Commit 01ecc6e

Browse files
committed
docs: update documentation for CarPlay
1 parent 59e51ab commit 01ecc6e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

CARPLAY.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ This guide explains how to enable and integrate Apple CarPlay with the React Nat
1212

1313
Refer to the [Apple CarPlay Developer Guide](https://developer.apple.com/carplay/) to understand how CarPlay works and to complete the initial setup. Key steps include:
1414

15-
- Adding the CarPlay entitlement to your Xcode project.
16-
- Creating a separate scene for the CarPlay map and enabling support for multiple scenes.
15+
- Adding the CarPlay entitlement to your Xcode project
16+
- Creating a separate scene for the CarPlay map and enabling support for multiple scenes
17+
18+
For a complete implementation example, refer to [AppDelegateCarPlay.m](example/ios/SampleApp/AppDelegateCarPlay.m), [PhoneSceneDelegate.m](example/ios/SampleApp/PhoneSceneDelegate.m) and [CarSceneDelegate.m](example/ios/SampleApp/CarSceneDelegate.m). Pay special attention to how the React Native window is initialized in `PhoneSceneDelegate` when using multiple scenes.
1719

1820
### SceneDelegate for CarPlay
1921

@@ -83,4 +85,10 @@ For a more detailed example, refer to the `NavigationScreen.tsx` in the React Na
8385

8486
## Example Project
8587

86-
For a fully functional CarPlay implementation, check out the [SampleApp](./example/ios/) Xcode project, which includes the `SampleAppCarPlay` build target. The sample already contains test entitlement so you don't need to request one from Apple to run it.
88+
For a fully functional CarPlay implementation, check out the [SampleApp](./example/ios/) Xcode project, which includes the `SampleAppCarPlay` build target. The sample already contains test entitlement so you don't need to request one from Apple to run it.
89+
90+
Start the CarPlay example from the command line:
91+
92+
```bash
93+
yarn example ios:carplay
94+
```

0 commit comments

Comments
 (0)