We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Remote controls from d-pad didn't work on webOS simulator
To Reproduce Steps to reproduce the behavior:
Expected behavior Focus should move down
Desktop (please complete the following information):
Additional context Replace index.tsx from src/app/index.tsx with next code
import React, { useContext } from 'react'; import { View, TouchableOpacity } from 'react-native'; import { ThemeProvider, ThemeContext } from '../config'; const App = () => ( <ThemeProvider> <AppThemed /> </ThemeProvider> ); const AppThemed = () => { const { theme } = useContext(ThemeContext); return ( <View style={theme.styles.wrapper}> <TouchableOpacity onFocus={()=>console.log(1)} hasTVPreferredFocus style={{width: 50, height: 50, backgroundColor: 'red'}} /> <TouchableOpacity onFocus={()=>console.log(2)} style={{width: 50, height: 50, backgroundColor: 'blue'}} /> </View> ); }; export default App;
The text was updated successfully, but these errors were encountered:
The Touchable opacity is not focusable by default. This is not a bug.
Sorry, something went wrong.
@ali-sao, could you please provide sample code with navigation logic between 2 buttons on WebOS?
No branches or pull requests
Describe the bug
Remote controls from d-pad didn't work on webOS simulator
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Focus should move down
Desktop (please complete the following information):
Additional context
Replace index.tsx from src/app/index.tsx with next code
The text was updated successfully, but these errors were encountered: