@livetv-app/tvguide
Version:
An Android TV Live Channels-like Electronic Programme Guide for React DOM and React Native applications.
21 lines (20 loc) • 837 B
TypeScript
import React = require('react');
import { FlatListProps, ViewProps } from 'react-native';
import { Channel, Programme } from '../types';
export interface ChannelListProps {
channels: Channel[];
programmes: Programme[];
tvPreferredFocus?: Channel | null;
onPressChannel?: (channel: Channel) => void;
scroller?: boolean;
style?: ViewProps['style'] | FlatListProps<unknown>['style'];
showChannelLogos?: boolean;
}
export declare const ChannelList: React.MemoExoticComponent<(props: ChannelListProps) => JSX.Element>;
export interface ProgrammeListProps {
channel?: Channel;
programmes: Programme[];
tvPreferredFocus?: Programme | null;
onPressProgramme?: (programme: Programme) => void;
}
export declare const ProgrammeList: React.MemoExoticComponent<(props: ProgrammeListProps) => JSX.Element>;