When using Actions.refresh({ renderRightButton: this.renderRightButton }); it is expected that the renderRightButton method is called and the right button rendered.
This is the renderRightButton method:
renderRightButton = (props) => {
return <TouchableOpacity onPress={this.logout}><Icon name="power" size={25} color="white" /></TouchableOpacity>
}
No button is rendered, but if I try the static renderRightButton it works.
Could you try to pass right ? renderRightButton is too long, probably we need to update docs to use right.
It's right as @aksonov said. I had this issue yesterday, tried renderRight and headerRight.
With right the button gets rendered button if width is large then it gets cut off.
But if I use renderRightButton as Scene prop in Router then it does not get cut off.
Any idea about this?
@aksonov Docs is still not updated. It still says renderRightButton
Most helpful comment
Could you try to pass
right?renderRightButtonis too long, probably we need to update docs to useright.