question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add monorepo documentation for specifying iconFontsDir

See original GitHub issue

Environment

macOS 10.15.4 Android 6.6.0

Description

In a monorepo setup, icons do not appear to render and show a rectangle with lines through them.

Android Emulator

Reproducible Demo

Using a monorepo setup and with yarn workspaces, the node_modules are installed at the root of the monorepo. The path to the icons needs to be updated with the new relative path:

project.ext.vectoricons = [
    iconFontsDir: "../../../../node_modules/react-native-vector-icons/Fonts"
]

apply from: file("../../../../node_modules/react-native-vector-icons/fonts.gradle");

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:6

github_iconTop GitHub Comments

1reaction
oskarhertzmancommented, Feb 9, 2022

Was ripping my hair out, this worked, thanks!

0reactions
dhatGuycommented, Aug 28, 2022

I figured it out. In expo bare workflow you need to manually import the fonts with expo-font. Two days down the drain because of that…🤦🏻‍♂️ Thanks for replying though! On Tue, 10 Nov 2020, 20:15 Joe Gornick, @.***> wrote: Sorry @robclouth https://github.com/robclouth and @ReeVicente https://github.com/ReeVicente, the only help I can provide is in the solution I included above by specifying the iconFonsDir and applying the fonts.gradle. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1183 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJP3IQDONSMM5UOJGGBFX3SPGGMFANCNFSM4NX5SBVQ .

How did you do that, please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started - monorepo guide
We've compiled a step-by-step guide for setting up your first monorepo. Hi! Welcome. ... We do this by adding a workspaces field to...
Read more >
Working with monorepos - Expo Documentation
Learn about setting up Expo projects in a monorepo with Yarn v1 workspaces. Monorepos, or "monolithic repositories", are single repositories containing multiple ...
Read more >
Monorepos - Netlify Docs
Set up your sites to build from a monorepo or a subdirectory. Consider where to declare dependencies and how to use workspaces on...
Read more >
Monorepo Support | Render · Cloud Hosting for Developers
For any service running on Render, you can define a Root Directory and/or ... For example, in a monorepo like this sample, adding...
Read more >
A Guide to Monorepos for Front-end Code - Toptal
A monorepo or monorepository is a code management and architectural ... JavaScript and Bazel – Docs for setting up a Bazel project for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found