1.0.5 • Published 1 year ago

@wouterds/react-native-tv-focus v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@wouterds/react-native-tv-focus

A package to programatically focus views on tvOS & AndroidTV.

Installation

# yarn
yarn add @wouterds/react-native-tv-focus

# npm
npm install @wouterds/react-native-tv-focus

Usage

import { findNodeHandle } from 'react-native';
import { focus } from '@wouterds/react-native-tv-focus';

// ...

// get tag by ref from a UI element
const tag = findNodeHandle(ref.current);

// programatically force focus on tag
focus(tag);
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.17

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago