-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
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
Navigation based on focus #8
Comments
cc @fabiomcosta |
Closed
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: