react-native-textinput-effects icon indicating copy to clipboard operation
react-native-textinput-effects copied to clipboard

unable to change font family

Open kavehnaseri opened this issue 5 years ago • 3 comments

export default class Login extends Component { render() { return (
<View style={styles.input_section}>
<Fumi style={styles.input} label={'mobile'} iconClass={FontAwesomeIcon} labelStyle={styles.input_label} iconName={'mobile'} iconColor={'#f95a25'} iconSize={20} iconWidth={40} inputPadding={16} /> </View> ); } }

const styles = StyleSheet.create({
input_label: { fontFamily: 'yekan', }, });

kavehnaseri avatar Aug 17 '20 09:08 kavehnaseri

have same issue

sinclaireric avatar Jan 24 '21 18:01 sinclaireric

have same issue

wtfckkk avatar Jan 26 '21 22:01 wtfckkk

@kavehnaseri @sinclaireric @wtfckkk

I had the same problem with Hoshi. I tried to make changes to the Hoshi.js file itself, but that didn't work either.

I further investigated it, and I found that fontWeight: 'bold' in styles.textInput was causing this error. This was inside Hoshi.js

After nearly a month, I solved it.

This should solve your problem. Use this:

const styles = StyleSheet.create({ input_label: { fontFamily: 'yekan', fontWeight: null, }, });

kopitek8 avatar Feb 23 '22 09:02 kopitek8