git clone git@github.com:deanmcpherson/react-native-tvos-example.git
cd react-native-tvos-example
npm install
npm start
Open ios/townskTV.xcodeproj in Xcode
Set townskeTV project's Base SDK to Latest tvOS
. Repeat this step for all libraries under townskeTV -> Libraries (React.xcodeproj, RTCActionSheet.xcodeproj...)
Open node_modules/react-native/React/Base
in Finder and drag & drop RCTTVRemoteHandler.h
and RCTTVRemoteHandler.m
to Xcode's project navigator under Project navigator -> townskeTV -> Libraries -> React.xcodeproj -> React -> Base
Modify line 108 in Project navigator -> townskeTV -> Libraries -> RCTLinking.xcodeproj -> RCTLinkingManager.m from
} else if (&UIApplicationLaunchOptionsUserActivityDictionaryKey &&
self.bridge.launchOptions[UIApplicationLaunchOptionsUserActivityDictionaryKey]) {
to
} else if (self.bridge.launchOptions[UIApplicationLaunchOptionsUserActivityDictionaryKey]) {
Project navigator -> townskeTV -> townskeTV -> LaunchScreen.xib