react-native-material-design icon indicating copy to clipboard operation
react-native-material-design copied to clipboard

Button text not aligned

Open gokulkulkarni1987 opened this issue 8 years ago • 2 comments

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

gokulkulkarni1987 avatar Aug 02 '17 10:08 gokulkulkarni1987

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

srsugara avatar Aug 03 '17 09:08 srsugara

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

gokulkulkarni1987 avatar Aug 03 '17 11:08 gokulkulkarni1987