Nativebase: Center the Button Vertically using flex

Created on 28 Sep 2017  路  1Comment  路  Source: GeekyAnts/NativeBase

Hi,

How to Vertically center the Native Base Button inside View Compoent. I tried alignItems : 'center', but its not working.

react-native, react and native-base version

react-native: 0.47.1
react: 16.0.0-alpha.12
native-base: 2.3.1

Expected behaviour

Center the button Vertically inside the View

Actual behaviour

cloud q11_20170928_182022

Steps to reproduce (code snippet or screenshot)

this is my code snippet

image

Is the bug present in both ios and android or in any one of them?

I don't know about IOS, I'm currently working on Android

Thanks in advance

Most helpful comment

@Naveen-ICARUS try adding alignSelf:'center' to button style networkStyle.connectionBtn:{}

>All comments

@Naveen-ICARUS try adding alignSelf:'center' to button style networkStyle.connectionBtn:{}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nschurmann picture nschurmann  路  3Comments

natashache picture natashache  路  3Comments

maphongba008 picture maphongba008  路  3Comments

Bundas picture Bundas  路  3Comments

inv2004 picture inv2004  路  3Comments