Skip to content
New issue

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

TextInput has no pointerEvent #14

Closed
flobiwankenobi opened this issue Jun 7, 2016 · 5 comments
Closed

TextInput has no pointerEvent #14

flobiwankenobi opened this issue Jun 7, 2016 · 5 comments

Comments

@flobiwankenobi
Copy link

TextInputs inside views can not be touched.

@FuYaoDe
Copy link
Owner

FuYaoDe commented Jun 8, 2016

This problem is only happen on android device, because ViewPagerAndroid don't support animated, i use absolute hack it, and react native did't support zIndex facebook/react-native#698, so you can slide but can't touch, maby on android you can use onSlideChange listen when need show TextInput or Touchable and use absolute hack it.

<View style={{ flex: 1 }}>
  <AppIntro>
    <View style={[styles.slide,{ backgroundColor: '#fa931d' }]}>
      <View level={10}><Text style={styles.text}>Page 1</Text></View>
      <View level={15}><Text style={styles.text}>Page 1</Text></View>
      <View level={8}><Text style={styles.text}>Page 1</Text></View>
    </View>
    <View style={[styles.slide, { backgroundColor: '#a4b602' }]}>
      <View level={-10}><Text style={styles.text}>Page 2</Text></View>
      <View level={5}><Text style={styles.text}>Page 2</Text></View>
      <View level={20}><Text style={styles.text}>Page 2</Text></View>
    </View>
  </AppIntro>
  <View style={{
    position: 'absolute',
    top: 100,
    left: 100,
  }}>
    <TextInput
      style={{ height: 40, width: 100 }}
    />
  </View>
</View>

hope facebook support zIndex soon ...

@FuYaoDe FuYaoDe closed this as completed Jun 8, 2016
@flobiwankenobi
Copy link
Author

Thanks for your response. I switched to react-native-swiper. There's nor parallax, but it works for me.

@looptlinks
Copy link

Did you ever find a fix for this issue? (without the workaround)

@flobiwankenobi
Copy link
Author

Nope, never used this plugin again. I achieved what I wanted to do with the react-native-swiper plugin.

@ariona
Copy link

ariona commented Oct 11, 2017

Any update on this? 😄 I think i'll just use paged FlatList if it's not beed resolved

@FuYaoDe the components inside the slide should react to every user input. In my case i have a slide that prompt some basic settings like language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants