Gh05d
Gh05d

Reputation: 8982

How to add custom fonts in React Native Version 0.69

Problem

I am trying to load custom fonts in my React Native App. However, I am using version 0.69 and I don't know how to add them anymore, because:

  • link and unlink commands have been removed in the favour of autolinking
  • Removed assets and hooks from react-native.config.js – you'll need to remove these properties from your config

So how can this now be done in Android and iOS now?

Upvotes: 0

Views: 1072

Answers (1)

Louay Sleman
Louay Sleman

Reputation: 2106

You can use react-native-asset for 0.69 using these command:

  npx react-native-asset

Upvotes: 3

Related Questions