Skip to content

[Bug]: RNW 0.78 windows project not assets dir how to add fonts into the project #1802

@davewang

Description

@davewang

Which package are you using?

@react-native-vector-icons/*

What platform(s) does this occur on?

web

What happened?

Hi everyone,
I'm working with React Native Windows (RNW) version 0.78 cpp-app. In earlier versions, I was able to add fonts to the assets directory and it worked fine.
However, in the cpp-app version of RNW 0.78, that method no longer works.
How can I fix this?

Relevant log output

Minimal reproducible example

No response

Your computer environment

PS C:\Users\dave\apps\ifappwin> npx react-native info
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22631
  CPU: (8) x64 Apple silicon
  Memory: 304.96 MB / 3.99 GB
Binaries:
  Node:
    version: 20.11.1
    path: C:\nvm4w\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\nvm4w\nodejs\yarn.CMD
  npm:
    version: 10.2.4
    path: C:\nvm4w\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.19041.0
      - 10.0.22621.0
      - 10.0.26100.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.14.36221.1 (Visual Studio Community 2022)
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.2
    wanted: 0.78.2
  react-native-windows:
    installed: 0.78.0
    wanted: 0.78.0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.80.1 is now available (your project is running on v0.78.2).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.80.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.78.2&to=0.80.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions