Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font fails MD5 integrity check #75

Open
tomrom-pomelo opened this issue Jun 10, 2022 · 1 comment
Open

Font fails MD5 integrity check #75

tomrom-pomelo opened this issue Jun 10, 2022 · 1 comment

Comments

@tomrom-pomelo
Copy link

tomrom-pomelo commented Jun 10, 2022

Hi there, not sure which community to post this issue in, but we are repeatedly seeing an issue with expo cli 5.4.2, expo 45.0.5, expo-font 10.1.0 and @expo-google-fonts/poppins 0.2.2 .
related to loading a font. When running

import { Poppins_400Regular, Poppins_600SemiBold, useFonts } from '@expo-google-fonts/poppins';

export default function useCachedResources() {
  let [fontsLoaded, error] = useFonts({
    poppins: Poppins_400Regular,
    'poppins-semibold': Poppins_600SemiBold,
  });
  // ...
}

on Android emulator with expo go, we keep getting

failed MD5 integrity check

This only happens on Android and iOS works fine. We've followed a lot of different forum threads and gh issues, purged package-lock.json, cleared metro cache, upgraded libraries, but are still hitting this.

Has anyone encountered this recently that would be able to help?

@tomrom-pomelo
Copy link
Author

FWIW we fixed this by downloading the fonts directly and loading them like

import { useFonts } from 'expo-font';

export default function useCachedResources() {
  let [fontsLoaded, error] = useFonts({
    poppins: require('../assets/fonts/Poppins-Regular.ttf'),
    'poppins-semibold': require('../assets/fonts/Poppins-SemiBold.ttf'),
  });
  // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant