File tree Expand file tree Collapse file tree
packages/shared-ui/src/screens Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useNavigation , useRoute , RouteProp } from '@react-navigation/native' ;
22import { NativeStackNavigationProp } from '@react-navigation/native-stack' ;
33import { StyleSheet , View , Image , Text } from 'react-native' ;
4- import { SpatialNavigationRoot } from 'react-tv-space-navigation' ;
4+ import { SpatialNavigationRoot , DefaultFocus } from 'react-tv-space-navigation' ;
55import { scaledPixels } from '../hooks/useScale' ;
66import { useCallback , useMemo } from 'react' ;
77import { useIsFocused } from '@react-navigation/native' ;
@@ -113,11 +113,13 @@ export default function DetailsScreen() {
113113 < Text style = { detailsStyles . crewName } > Eric Fahsl</ Text >
114114 </ View >
115115 </ View >
116- < FocusablePressable
117- text = { 'Watch now' }
118- onSelect = { navigate }
119- style = { buttonStyle }
120- />
116+ < DefaultFocus >
117+ < FocusablePressable
118+ text = { 'Watch now' }
119+ onSelect = { navigate }
120+ style = { buttonStyle }
121+ />
122+ </ DefaultFocus >
121123 </ View >
122124 </ View >
123125 </ View >
You can’t perform that action at this time.
0 commit comments