FuYaoDe / react-native-app-intro

react-native-app-intro is a react native component implementing a parallax effect welcome page using base on react-native-swiper , similar to the one found in Google's app like Sheet, Drive, Docs...
MIT License
3.25k stars 508 forks source link

view cannot response touchableopacity onpress #73

Open kendy37 opened 7 years ago

kendy37 commented 7 years ago

hello,i have a problem here: `

title
        <View level={-15}><Text style={styles.description}>description</Text></View>
        <View level={-10} style={{marginTop:10,height: 50,}} >
          <TouchableOpacity activeOpacity={0.9} onPress={() => {Alert.alert('Next');}}>
            <Image style={{ width: 45 * 2.5, height: 13 * 2.5 }} source={require('../ui-module/img/ad_3_button@3x.png')} />
          </TouchableOpacity>
        </View>
      </View>`

when i add a TouchableOpacity in a view of a page in the appintro, the onPress() didnot fire, is it a bug or something ? any advice?

w3z315 commented 7 years ago

This is most likely because overlaying View with the navigation is having a higher based index, with transparent background.

Actually I'll create a pull request changing that

tizzyapunkt commented 7 years ago

Some news on that? Struggeling with the same bug right now.

ddiegommachado commented 5 years ago

I have same problem....some news?