Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Button text not aligned #162

Open
gokulkulkarni1987 opened this issue Aug 2, 2017 · 2 comments
Open

Button text not aligned #162

gokulkulkarni1987 opened this issue Aug 2, 2017 · 2 comments

Comments

@gokulkulkarni1987
Copy link

I am using the following code to display a button,

```<Button
    onPress={this.onButtonPress.bind(this)}
    text='Login'
    overrides={{ backgroundColor: '#007aff', textColor: '#fff' }}
    raised
  />

The text in the button is not aligned at the centre, as shown in the below image,
screenshot_20170802-155332

@srsugara
Copy link

srsugara commented Aug 3, 2017

I think you need to change button style value on Button.js file (./node_modules/react-native-material-design/lib/Button.js) like this :
top: Platform.OS === 'android' ? 2 : -4
change to :
top: -4

@gokulkulkarni1987
Copy link
Author

Thank you, but because of such issues, i stopped using this library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants