All Projects → react-tv → react-tv-navigation

react-tv / react-tv-navigation

Licence: other
React Navigation for TVs

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-tv-navigation

React Tv
[ Unmaintained due to raphamorim/react-ape ] React Renderer for low memory applications
Stars: ✭ 1,941 (+2932.81%)
Mutual labels:  tv, samsung, webos, react-tv
qmlcore-tv
Smart TV PureQML plugin (LG, Samsung, OperaTV, AndroidTV, Hisense)
Stars: ✭ 23 (-64.06%)
Mutual labels:  tv, tizen, webos
lrud
Left, Right, Up, Down. A spatial navigation library for devices with input via directional controls
Stars: ✭ 31 (-51.56%)
Mutual labels:  tv, focus, react-tv
Piholeblocklist
PiHole and AGH Blocklists
Stars: ✭ 320 (+400%)
Mutual labels:  tv, samsung
lgtv2mqtt
Interface between LG WebOS Smart TVs and MQTT 📺
Stars: ✭ 90 (+40.63%)
Mutual labels:  tv, webos
RootMyTV.github.io
RootMyTV is a user-friendly exploit for rooting/jailbreaking LG webOS smart TVs.
Stars: ✭ 745 (+1064.06%)
Mutual labels:  tv, webos
UitzendingGemist
An *Unofficial* Uitzending Gemist application for Apple TV 4 (**deprecated, use TV Gemist ☝🏻**)
Stars: ✭ 48 (-25%)
Mutual labels:  tvos, tv
Tvrecyclerview
TvRecyclerView--针对TV端特性进行的适配与开发
Stars: ✭ 453 (+607.81%)
Mutual labels:  tv, focus
mcloud
Mobile farm ecosystem for Android and iOS devices
Stars: ✭ 32 (-50%)
Mutual labels:  tvos, tv
Antenna
Antenna is a live TV app for Apple TV (tvOS) powered by USTVnow.
Stars: ✭ 50 (-21.87%)
Mutual labels:  tvos, tv
Exhibit
Exhibit is a managed screensaver App for tvOS.
Stars: ✭ 19 (-70.31%)
Mutual labels:  tvos, tv
Renative
🚀🚀🚀Build universal cross-platform apps with React Native. Includes latest iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
Stars: ✭ 1,199 (+1773.44%)
Mutual labels:  tvos, samsung
Amazon-Alexa-As-LG-TV-Remote
Control your LG WebOS 3.0+ TV with Amazon Alexa
Stars: ✭ 22 (-65.62%)
Mutual labels:  tv, webos
TVGemist
An *Unofficial* Uitzending Gemist application for  TV
Stars: ✭ 23 (-64.06%)
Mutual labels:  tvos, tv
rtsp-samsung-tv
Display RTSP streams from IP Cameras on Samsung Smart TV (Tizen TV)
Stars: ✭ 40 (-37.5%)
Mutual labels:  tizen, samsung
Tvwidget
tv常用效果控件,包括焦点、边框处理等。
Stars: ✭ 519 (+710.94%)
Mutual labels:  tvos, focus
Popcorntimetv
Popcorn Time for Apple TV 4, iPhone and iPad
Stars: ✭ 1,216 (+1800%)
Mutual labels:  tvos, tv
Leanbacktvsample
Leanback Demo
Stars: ✭ 85 (+32.81%)
Mutual labels:  tvos, tv
react-bolivianite-grid
React grid component for virtualized rendering large tabular data.
Stars: ✭ 95 (+48.44%)
Mutual labels:  react-component
redux-autoloader
A higher order component for declarative data loading in React and Redux.
Stars: ✭ 56 (-12.5%)
Mutual labels:  react-component

React-TV-Navigation was migrated to raphamorim/react-tv

Navigation for TVs using React-TV

CircleCI

tl;dr: Based on Netflix TV Navigation System

React-TV Navigation Example

See code from this example

React-TV-Navigation is a separated package from React-TV renderer to manage focusable components.

Installing

yarn add react-tv-navigation

React and React-TV are peer-dependencies.

withFocusable and withNavigation

React-TV Navigation exports two functions: withFocusable and withNavigation.

A declarative navigation system based on HOC's for focus and navigation control.

import React from 'react'
import ReactTV from 'react-tv'
import { withFocusable, withNavigation } from 'react-tv-navigation'

const Item = ({focused, setFocus, focusPath}) => {
  focused = (focused) ? 'focused' : 'unfocused'
  return (
    <div onClick={() => { setFocus() }} >
      It's {focused} Item
    </div>
  )
}

const Button = ({setFocus}) => {
  return (
    <div onClick={() => { setFocus('item-1') }}>
      Back To First Item!
    </div>
  )
}

const FocusableItem = withFocusable(Item)
const FocusableButton = withFocusable(Button)

function App({currentFocusPath}) {
  return (
    <div>
      <h1>Current FocusPath: '{currentFocusPath}'</h1>,
      <FocusableItem focusPath='item-1'/>
      <FocusableItem focusPath='item-2'/>
      <FocusableButton
        focusPath='button'
        onEnterPress={() => console.log('Pressed enter on Button!')}/>
    </div>
  )
}

const NavigableApp = withNavigation(App)

ReactTV.render(<NavigableApp/>, document.querySelector('#app'))

Soon we'll write a decent README.md :)

License by MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].