1.0.5 • Published 2 years ago
@wouterds/react-native-tv-focus v1.0.5
@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
2 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.1.24
3 years ago
0.1.23
3 years ago
0.1.22
3 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago