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

onPress does'nt work when child element are position:absolute #90

Open
abhiburk opened this issue Jul 30, 2019 · 0 comments
Open

onPress does'nt work when child element are position:absolute #90

abhiburk opened this issue Jul 30, 2019 · 0 comments

Comments

@abhiburk
Copy link

I am unable to make onPress when the code is wrapped inside Row element.
Basically the image is half placed on Row 20 and Half on Row 80 with Icon. But I am unable to do onPress as icon isn't working.
It works when I make Edit Icon on Row 20 completely

<Row size={20} style={{ backgroundColor: '#3679e0',  }} >
        <View style={{position:'relative', flex:1,}} >
               <Thumbnail large style={{ borderColor: 'white', borderWidth: 3,position: 'absolute',alignSelf: 'center', bottom: -20  }} source={this.state.filePath}  />
                 <Button transparent  style={{position: 'absolute',alignSelf: 'center', zIndex:11111111111 , bottom: -40}} onPress={this.chooseFile}>
                  <Icon name='pencil'  style={{ fontSize: 20, color: 'blue',zIndex:1 , }} type="FontAwesome"/>
                </Button>
       </View>
</Row>
.
.
.
<Row size={80} style={[Styles.row, { marginTop: 50 }]}>
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

1 participant