question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextInput is not focusing on multiple pages

See original GitHub issue

Ask 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:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
leoafariascommented, Feb 4, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found