thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.8k stars 868 forks source link

[NEW FEATURE REQUEST/IDEA]: add support for several font families #428

Closed M21H closed 2 weeks ago

M21H commented 4 months ago

Is your feature request related to a problem?

display several font families in the app

Describe the solution you'd like

add font families to _config

Describe alternatives you've considered.

No response

JeremyDolle commented 2 weeks ago

as the theme configuration is not hidden code, you always can add configuration or static style.

ex:

export const staticFontStyles = {
  // ...
  brandFontFamily: {
    fontFamily: 'MyAwsomeFont',
  },
  // ...
} as const satisfies Record<string, TextStyle>;