-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
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
Font Family Issue #62
Comments
Same problem |
Same |
Hey, this is an issue with the react-native itself. When the font-weight is bold it automatically assigns the default font-family to the button text. So try making the fontWeight: '400'. Solution: |
@udhay1415 it doesn't have any style property. |
I don't think you can. What you can actually do is to create your own button buttons via TouchableOpacity, like this: https://blog.logrocket.com/creating-custom-buttons-in-react-native/ Follow the instructions from the link above. Then, you can have something like this: const styles = StyleSheet.create({ |
I cannot seem to change the font family property of the button text here is what i have:
<Button onPress={() => this.validateUser()} style={styles.btnSignIn} containerStyle={styles.btnContainerSignIn}>SIGN IN</Button>
The styling is as follows:
btnContainerSignIn: { paddingTop: 12, paddingBottom: 12, marginLeft: -5, marginRight: -5, backgroundColor: '#386376', borderRadius: 3, }, btnSignIn:{ color: '#fff', fontFamily: 'Arimo', },
The font family is Arimo and it has been imported properly and seems to be working everywhere else except the button. Anyone know a way around this?
The text was updated successfully, but these errors were encountered: