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

Error Cannot find native module ExpoFontLoader #29087

Closed
husenLogicwind opened this issue May 24, 2024 · 7 comments
Closed

Error Cannot find native module ExpoFontLoader #29087

husenLogicwind opened this issue May 24, 2024 · 7 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@husenLogicwind
Copy link

Minimal reproducible example

https://github.com/react-native-tvos/react-native-tvos

What platform(s) does this occur on?

Android

Did you reproduce this issue in a development build?

Yes

Summary

I have created new react-native-tv-os project and added react-native-vector-icons and try to use below code at that time this issue occurs

import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
const IconMoonIcons = createIconSetFromIcoMoon(icoMoonConfig, 'icomoon', 'icomoon.ttf');

Screenshot_1716542666

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.3
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - /usr/local/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.5.0 - /usr/local/bin/npm
Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
npmPackages:
expo: ^50.0.14 => 50.0.18
react: 18.2.0 => 18.2.0
react-native-tvos: 0.74.0-0rc1
Expo Workflow: bare

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✖ Check for issues with metro config
✖ Check Expo config (app.json/ app.config.js) schema
✔ Check native tooling versions
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
✖ Check that packages match versions required by installed Expo SDK

Detailed check results:

Error: Problem validating fields in /Users/st-lt-mb-lw017/projects/ott/thinqTv/app.json. Learn more: https://docs.expo.dev/workflow/configuration/
• should NOT have additional property 'displayName'.

It looks like that you are using a custom metro.config.js that does not extend @expo/metro-config. This can lead to unexpected and hard to debug issues. Learn more: https://docs.expo.dev/guides/customizing-metro/
Advice: Update your custom metro.config.js to extend @expo/metro-config.

The following packages should be updated for best compatibility with the installed expo version:
@sentry/react-native@5.22.0 - expected version: ~5.20.0
react-native@0.74.0-0rc1 - expected version: 0.73.6
react-native-reanimated@3.11.0 - expected version: ~3.6.2
react-native-safe-area-context@4.10.1 - expected version: 4.8.2
react-native-screens@3.31.1 - expected version: ~3.29.0
react-native-svg@13.14.0 - expected version: 14.1.0
@types/react@18.3.3 - expected version: ~18.2.45
typescript@5.0.4 - expected version: ^5.3.0
Your project may not work correctly until you install the correct versions of the packages.
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.

@husenLogicwind husenLogicwind added the needs validation Issue needs to be validated label May 24, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels May 24, 2024
@brentvatne
Copy link
Member

hey there! please resolve the issues that were surfaced by expo doctor. if the issue persists, please create a minimal reproducible example, thanks

also cc @douglowder

@husenLogicwind
Copy link
Author

husenLogicwind commented May 25, 2024

@brentvatne @douglowder here the minimal reproducible example Example

also i have fixed almost all expo doctor warning.
i couldn't fix react native warning because it shows react native version and i have react native tv os version.

Screenshot 2024-05-25 at 10 04 00 AM

@husenLogicwind
Copy link
Author

@brentvatne @douglowder is there any update on it?

@brentvatne
Copy link
Member

hi @husenLogicwind - it looks like perhaps the issue here is that you haven't configured the your Podfile for autolinking expo modules: https://github.com/husenLogicwind/TestAppMinimal/blob/main/ios/Podfile - https://docs.expo.dev/brownfield/installing-expo-modules/

you can compare your Podfile to one in a new tvos project:

npx create-expo-app MyTVProject -e with-tv
cd MyTVProject
export EXPO_TV=1
npx expo prebuild -p ios

now look at ios/Podfile

@husenLogicwind
Copy link
Author

@brentvatne thanks for your quick response
Currently i am only working in Android platform. I haven't check on IOS platform.

@brentvatne
Copy link
Member

got it. you can verify the same thing based on the expo module installation instructions for android

@Aswanth-c
Copy link

Author

I'm having same issues did you find any fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants