Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro em Font Externa - MontSerrat

Ao importar a fonte, aparentemente está tudo ok:

** expo install expo-font @expo-google-fonts/montserrat**

Installing 1 SDK 44.0.0 compatible native module and 1 other package using npm.

npm install

up to date, audited 883 packages in 3s

28 packages are looking for funding run npm fund for details

15 vulnerabilities (10 moderate, 5 high)

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

npm install --save @expo-google-fonts/montserrat

up to date, audited 883 packages in 3s

28 packages are looking for funding run npm fund for details

15 vulnerabilities (10 moderate, 5 high)

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

Ao executar o código:

Unable to resolve module @expo-google-fonts/montserrat from H:\APPLudopedia\cesta\orgs-cesta\App.js: @expo-google-fonts/montserrat could not be found within the project or in these directories: node_modules

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-* 3 | import { StatusBar, SafeAreaView, View } from 'react-native'; 4 | import Cesta from './src/telas/Cesta';

    5 | import {useFonts, Montserrat_400Regular, Montserrat_700Bold, Montserrat_400Regular_Italic} from '@expo-google-fonts/montserrat'; | ^ 6 | 7 | export default function App() {

1 resposta
solução!

Resolvido. Precisa parar a aplicação e iniciar tudo novamente.