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

Z-order #6

Open
pkassonss opened this issue Nov 30, 2017 · 0 comments
Open

Z-order #6

pkassonss opened this issue Nov 30, 2017 · 0 comments

Comments

@pkassonss
Copy link

pkassonss commented Nov 30, 2017

I have used this once in an earlier UI and it worked fine.

Now, I need to have it appear over a scroll view (or any component) and the z-order is not working. It appears behind the scrollview. Below is the code

Function called by rendered (to allow conditional rendering):

`
/*

  • get the activity indicator
    */
    getActivityIndicator()
    {

if(this.state.activityVisible)
{

 return (
   <View style={styles.overlayAnimation} >
     <View style>
   
       <BubblesLoader color="red" />
   
       <TextLoader text="Registering" />
   
     </View>
   </View>

   )
}

else
{
return ""
}

}`

The render section which calls this function:

` render()
{
return (

       <Button transparent onPress={() => Actions.pop()}>
         <Icon name="ios-arrow-back" />
       </Button>
  
       <Title>Register</Title>
     </Header>
  
  
     { this.getActivityIndicator() }
  
  
     <ScrollView >
  
            <View>
               <Text style={styles.labelCenter}>
                 Click here to select community
               </Text>
  
               <ModalPicker data={this.getCommunities() }  initValue="Gahanna" onChange={(option)=>{ this.setState({selectedCommunity:option.label})}}>
               </ModalPicker>
            </View>`

Note, I originally had the styling inline, but now using externally:

overlayAnimation:
{
position : 'absolute',
backgroundColor: 'red',
top : 150,
bottom : 0,
left : 165,
right : 0,
zIndex : 1,
},

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