UNPKG

react-native-tvos

Version:
38 lines (34 loc) 1.14 kB
/** * Methods to enable and disable listening for Apple TV remote events (menu key, pan gesture) * * @format * @flow */ 'use strict'; import NativeTVNavigationEventEmitter from '../../../src/private/specs_DEPRECATED/modules/NativeTVNavigationEventEmitter'; module.exports = { enableTVMenuKey: () => { NativeTVNavigationEventEmitter && NativeTVNavigationEventEmitter.enableTVMenuKey(); }, disableTVMenuKey: () => { NativeTVNavigationEventEmitter && NativeTVNavigationEventEmitter.disableTVMenuKey(); }, enableTVPanGesture: () => { NativeTVNavigationEventEmitter && NativeTVNavigationEventEmitter.enableTVPanGesture(); }, disableTVPanGesture: () => { NativeTVNavigationEventEmitter && NativeTVNavigationEventEmitter.disableTVPanGesture(); }, enableGestureHandlersCancelTouches: () => { NativeTVNavigationEventEmitter && NativeTVNavigationEventEmitter.enableGestureHandlersCancelTouches(); }, disableGestureHandlersCancelTouches: () => { NativeTVNavigationEventEmitter && NativeTVNavigationEventEmitter.disableGestureHandlersCancelTouches(); }, };