[docs] No native ExpoFirebaseCore module found with firebase-recaptcha
Problem
[https://docs.expo.io/versions/latest/sdk/firebase-recaptcha/] I followed the steps described in this doc to set up the phone auth but ran into the issue of "ExpoFirebaseCore module not found, are you sure the expo-firebase-core module is linked properly?" I installed the expo-firebase-core package too but still ran into this error. How to fix it?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix ExpoFirebaseCore Module Not Found Error
The error occurs because the expo-firebase-core module is either not properly linked or not installed correctly in the project. This can happen if the package is not included in the native build or if there are issues with the Metro bundler cache.
Awaiting Verification
Be the first to verify this fix
- 1
Install expo-firebase-core
Ensure that the expo-firebase-core package is installed correctly in your project. Run the following command to install it if you haven't done so already.
bashnpm install expo-firebase-core - 2
Link the Package
If you are using a bare workflow, ensure that the expo-firebase-core package is linked properly. You can do this by running the following command:
bashnpx react-native link expo-firebase-core - 3
Clear Metro Bundler Cache
Sometimes, the Metro bundler cache can cause issues. Clear the cache by running the following command:
bashexpo start -c - 4
Rebuild the Project
After clearing the cache, rebuild your project to ensure all changes are applied. If you are using Expo Go, simply restart the app. For bare workflow, run:
bashnpx react-native run-android || npx react-native run-ios - 5
Check Configuration
Ensure that your Firebase configuration is correct and that you have set up the necessary permissions in your app's configuration files (e.g., AndroidManifest.xml for Android).
Validation
To confirm the fix worked, run your application and check if the ExpoFirebaseCore module error is resolved. You should be able to access the firebase-recaptcha functionality without issues.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep