halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

unable to change font family #122

Open kavehnaseri opened 4 years ago

kavehnaseri commented 4 years ago

export default class Login extends Component { render() { return (

);

} }

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

sinclaireric commented 3 years ago

have same issue

wtfckkk commented 3 years ago

have same issue

kopitek8 commented 2 years ago

@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, }, });