Skip to content

Commit 8229f2a

Browse files
authored
Update README.md
1 parent 94c5cc5 commit 8229f2a

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
11
# ReactNavigationTVDemo
22

3-
Demonstrates React Navigation running on Apple TV.
3+
Demonstrates React Navigation running on Apple TV and Android TV
44

55
## Features
66

77
- Shows how to solve an issue where off-screen controls can still be reached by the tvOS focus engine. See the discussion [here](https://github.com/react-native-community/react-native-tvos/issues/43) in the `react-native-tvos` repo.
88
- Shows use of tvOS specific props and events in controls for the screen and for navigation
99
- Shows proper enabling and disabling of the menu button using `TVMenuControl`
1010
- Uses [react-native-tvos](https://github.com/react-native-community/react-native-tvos), the react-native distro with full Apple TV support
11-
- Uses a fork of `react-native-screens` where tvOS compilation errors are fixed
11+
- Includes patches to fix tvOS compile issues with `react-native-reanimated` and `react-native-screens`
1212

1313
[Video](https://dlowder-salesforce.github.io/react-native-apple-tv/ReactNavigationTVDemo.mp4)
1414

1515
## Instructions
1616

17-
- Clone this repo
18-
- Change to the repo directory
19-
- `yarn`
20-
- `yarn run bundle_ios` or `yarn run bundle_ios_dev`
21-
- `cd ios; pod install; cd ..`
22-
- `open ios/ReactNavigationTVDemo.xcworkspace`
23-
- Build the tvOS target
17+
```bash
18+
# Installation
19+
git clone https://github.com/react-native-tvos/ReactNavigationTVDemo
20+
cd ReactNavigationTVDemo
21+
yarn
22+
cd ios
23+
pod install
24+
cd ..
25+
# iOS
26+
react-native run-ios
27+
# Apple TV
28+
react-native run-ios --scheme="ReactNavigationTVDemo-tvOS" --simulator="Apple TV"
29+
# Android (either phone or TV simulator or device already running and connected)
30+
react-native run-android
31+
```
32+
2433

0 commit comments

Comments
 (0)