We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this how a button is supposed to look on Android? Then -> why?
var MK = require('react-native-material-kit'); var { MKButton, MKColor, } = MK; <MKButton backgroundColor={MKColor.Teal} onPress={() => {this.readBook(book);}} > <Text pointerEvents="none" style={{color: 'white', fontWeight: 'bold',}}> READ </Text> </MKButton>
The text was updated successfully, but these errors were encountered:
@ssomnoremac style seems to be overriding. I use it like this:
style={[MKButton.accentColoredButton().style, styles.button]}
wherestyles.button is your style.
styles.button
Sorry, something went wrong.
@ssomnoremac did @Taakn's solution work for you?
Full button can look like this
<MKButton {...MKButton.coloredButton().toProps()} backgroundColor={MKColor.Teal} onPress={() => {this.readBook(book);}} > <Text pointerEvents="none" style={{color: 'white', fontWeight: 'bold',}}> READ (toProps) </Text> </MKButton>
Many examples can be found here - #3
No branches or pull requests
Is this how a button is supposed to look on Android? Then -> why?
The text was updated successfully, but these errors were encountered: