-
-
Save pierpo/1d0c380ddbeada362eda0172c5ad36d8 to your computer and use it in GitHub Desktop.
LRUD example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// not the exact structure, but this is the global idea | |
{ | |
root: { | |
id: 'root', | |
orientation: 'vertical', | |
children: [ | |
{ id: 'row1', orientation: 'horizontal', children: [ | |
{id: 'program-1-1', isFocusable: true }, | |
{id: 'program-1-2', isFocusable: true }, | |
{id: 'program-1-3', isFocusable: true }, | |
{id: 'program-1-4', isFocusable: true } | |
]}, | |
{ id: 'row2', orientation: 'horizontal', children: [ | |
{id: 'program-2-1', isFocusable: true }, | |
{id: 'program-2-2', isFocusable: true }, | |
{id: 'program-2-3', isFocusable: true }, | |
{id: 'program-2-4', isFocusable: true }, | |
]} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment