We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following similar patterns of https://medium.com/netflix-techblog/pass-the-remote-user-input-on-tv-devices-923f6920c9a8 and https://github.com/react-tv/react-tv-navigation
draft api:
import { Text, withFocusable, withNavigation } from 'react-ape' const Item = ({focused, setFocus, focusPath}) => { focused = (focused) ? 'focused' : 'unfocused' return ( <Text onClick={() => { setFocus() }} > It's {focused} Item </Text> ) }
The text was updated successfully, but these errors were encountered:
cc @fabiomcosta
Sorry, something went wrong.
My suggestion:
import { Text, withFocus } from 'react-ape'; const Item = ({focusPath}) => { const style = focused ? { outline: '1px solid blue' } : {}; return ( <Text style={style}> Its {focused} Item </Text> ) } export default withFocus(Item);
import { FocusableItem } from './FocusableItem' class Navigation extends React.Component { render() { return ( <FocusableItem focused={ true }> Tshow </FocusableItem> ); } }
Resolution in #12
raphamorim
No branches or pull requests
Following similar patterns of https://medium.com/netflix-techblog/pass-the-remote-user-input-on-tv-devices-923f6920c9a8 and https://github.com/react-tv/react-tv-navigation
draft api:
The text was updated successfully, but these errors were encountered: