Skip to content
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

Set fontFamily for TextInput? #112

Open
wzup opened this issue Jun 23, 2018 · 2 comments
Open

Set fontFamily for TextInput? #112

wzup opened this issue Jun 23, 2018 · 2 comments

Comments

@wzup
Copy link

wzup commented Jun 23, 2018

How do I set style for TextInput field? What props?

I don't need fontSize, I need fontFamily to be set.
Why itemTextStyle exist and I can change fontFamily but for TextInput styles are not provided?

@sijad
Copy link

sijad commented Aug 6, 2018

I'm using dropdown like this:

import React from 'react';
import {
  StyleSheet,
} from 'react-native';
import { Dropdown as MaterialDropdown } from 'react-native-material-dropdown';

export default function Dropdown(props) {
  return (
    <MaterialDropdown
      affixTextStyle={styles.font}
      itemTextStyle={styles.font}
      labelTextStyle={styles.font}
      style={styles.font}
      titleTextStyle={styles.font}
      {...props}
    />
  );
}

const styles = StyleSheet.create({
  font: {
    fontFamily: 'MyFont',
  },
});

@Temirtator
Copy link

It's getting bolder. You need to set fontWeight: '500' to itemTextStyle

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

No branches or pull requests

3 participants