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.99k stars 293 forks source link

How to use custom font for label and text input #95

Closed RyanSalih closed 4 years ago

RyanSalih commented 5 years ago

How to use custom font for label and text input? i have tried adding "rnpm": { "assets": [ "../.././assets/fonts/" ] } inside the lib package.json. Also tried adding fontFamily:"my-font-family-name" inside the style prop, is there any solution for it?

halilb commented 5 years ago

Passing fontFamily: "my-font-family-name" style should have done the job.

Could you post a minimal showcase where you are using the library @RyanSalih? Also could you check you can use the custom font you are importing in a plain react-native Text component?

halilb commented 4 years ago

Closing due to inactivity.