Skip to content

Instantly share code, notes, and snippets.

@pierpo
Created October 9, 2023 09:10
Show Gist options
  • Save pierpo/1d0c380ddbeada362eda0172c5ad36d8 to your computer and use it in GitHub Desktop.
Save pierpo/1d0c380ddbeada362eda0172c5ad36d8 to your computer and use it in GitHub Desktop.
LRUD example
// 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