TextInput is not focusing on multiple pages
See original GitHub issueAsk your Question
Hello everyone I am using a view pager for the video scrolling page and using the bottom sheet to add comments, now the text input is not focusing in development mode, and in production, it takes two taps to be focused. Even using the normal code without a video page I am facing the same issue. this is my simple code where textinput is not getting fuscused. tried with all options of setting heights of the pages but still it is not working.
const {height} = Dimensions.get('window');
<ViewPager
style={{height: height * 0.91}}
orientation="vertical"
onPageSelected={(e) => setSelected(e.nativeEvent.position)}
initialPage={index}>
{videos.map((item, index) => {
return (
<View
key={index}
backgroundColor="gray"
style={{
height: height * 0.91,
alignContent: 'center',
alignItems: 'center',
justifyContent: 'center',
}}>
<StatusBar translucent backgroundColor="grey" />
{/* <VideoPlayer
video={item}
navigation={navigation}
isPlay={selected === index}
/> */}
<TextInput placeholder={item._id}></TextInput>
</View>
);
})}
</ViewPager>
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
TextInput is not focusing on multiple pages · Issue #250 - GitHub
Hello everyone I am using a view pager for the video scrolling page and using the bottom sheet to add comments, now the...
Read more >TextInput sometimes doesn't focus when located in a Modal
I can say my TextInput is focused about 6 times on 10 (open/close Modal). When it's not focused and if I try to...
Read more >The Label element - HTML: HyperText Markup Language | MDN
The label text is not only visually associated with its corresponding text input; it is programmatically associated with it too.
Read more >Understanding Success Criterion 3.2.2 - W3C
focus ;. content that changes the meaning of the Web page. Note: A change of content is not always a change of context ......
Read more >Content Manager: Troubleshooting User Input Elements Issues
Depending on the permissions set in your dataset or collection settings, and the user input element added on your page might not work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am having the same issue. Tried to create a snack but it happens in a specific case. For me it only happens when I open the screen in a materialBottomBar navigator. I am guessing that it could have something to do with the height.
duplicated: https://github.com/callstack/react-native-pager-view/issues/382