Skip to content

renderRightButton gets hidden by the nav bar on 3.2.2 #398

@SudoPlz

Description

@SudoPlz

Ok I kept researching and I found out that the button WAS indeed rendered but it it is rendered BEHIND the nav bar.. Like so:
screen shot 2016-03-25 at 22 04 11

Thats my code:

  class ARightBtn extends React.Component {
      render(){
          return <Text style={{
            width: 80,
            position: 'absolute',
            height: 120,
            width: 200,
            top: 50,
            right:0,
            padding: 8,
            backgroundColor: 'red',
            color: '#000000'
        }}>RightBtnTest</Text>
      }
  }

and then I use it like so:

<Scene key="EmailSignIn" title="Sign In" type="push" hideNavBar={false} titleStyle={{color:Colors.mainTextColor}} renderRightButton={()=><ARightBtn/>} initial={true} >
    <Scene key="EmailSignIn1" component={EmailSignIn} title="Sign In" navigationBarStyle={{backgroundColor:Colors.primaryColor}} renderRightButton={()=><ARightBtn/>}  />
    <Scene key="EmailSignIn2" component={Onboarding} title="Sign In"/>
</Scene>

What can I do @aksonov ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions