I ran into the same issue, my mistake was in the styles :
var styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }});
I had to remove justifyContent
and alignItems
from there. Problem solved for me.