Skip to main content

Questions tagged [expo]

Expo is an open-source and free platform that lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript. Use the Expo tag on questions about developing Expo projects and using the Expo development tools like XDE and exp.

Filter by
Sorted by
Tagged with
15 votes
2 answers
7k views

Expo Firebase Authentication "While trying to resolve module `idb` from file"

This is my first app. I'm trying to use Firebase for Email/Password authentication. I followed the basic tutorial https://firebase.google.com/docs/auth/web/password-auth#web-version-9, and I keep ...
KrishP's user avatar
  • 165
15 votes
3 answers
6k views

Dark Mode: useColorScheme() always returns light on Android

I am trying to get Dark Mode to work and it doesn't work on Android. It always returns "light". On iOS it works fine. import React from 'react'; import { useColorScheme } from "react-...
André's user avatar
  • 1,218
15 votes
6 answers
32k views

Application main has not been registered

I have recently started to convert my react native app and running on Expo so i could test this on my actual android device. I am getting this error above. I have since then running my app using the ...
johnobc's user avatar
  • 581
15 votes
3 answers
10k views

Change border color of TextInput when focused in react-native-web (expo)

In the last versions of Expo there is a Web support. In the picture you see a normal TextInput created with React Native & rendered in the Web. How can I change the color of the TextInput Border ...
Arbnor's user avatar
  • 2,332
15 votes
2 answers
17k views

react-native-image-picker vs expo ImagePicker

I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many ...
Olivia's user avatar
  • 2,033
15 votes
10 answers
20k views

Tunnel URL not found, falled back to LAN URL

How do I run my expo app using the tunnel? It worked last week but for the last 3 days, it stopped working. Code written: expo start --tunnel Methods I tried: I used 3 different networks. One using ...
Irvin ting sie ze's user avatar
15 votes
8 answers
110k views

How to fire componentDidMount() or useEffect Hook on every visit to a page/screen?

So I have an app with an activity. The app checks for Internet connection at the beginning. If there are no Internet connection, it will show a screen with a button to refresh the page. The problem is ...
Kevin Gozali's user avatar
15 votes
1 answer
5k views

Delay on the capture of an image - React Native Camera / Expo Camera

I am trying to realize the same functionnality as in Facebook or Instagram: Preview the image taken by the camera instantly At this point, my taken is correctly taken when this function is called : ...
Jaro's user avatar
  • 1,667
15 votes
6 answers
9k views

Deep linking - doesn't work if app is closed

I'm implementing deep linking with expo in my react native app. I've managed to do it using this code with this tutorial and this documentation for adjusting it to my nested stacks: const linking = { ...
sagi's user avatar
  • 40.4k
15 votes
0 answers
4k views

React Native TextInput Error: perform input operation requires a valid sessionID

I have a React Native project using the Expo managed workflow with Prebuild. I'm simply rendering a TextInput component and I am receiving this error: [RemoteTextInput] -[RTIInputSystemClient ...
David Henry's user avatar
  • 2,720
15 votes
0 answers
4k views

Disconnected from the Metro server. Reload to reconnect

Using RN with Expo, I've started getting the Disconnected from the Metro server. Reload to reconnect error to appear pretty much every time after hitting Save. I found this - https://github.com/...
user's user avatar
  • 193
14 votes
7 answers
11k views

npm install -g expo-cli fails with "EPERM: operation not permitted, unlink '...\adb.exe'

I receive an error when running $ npm install -g expo-cli I have tried reinstalling the node modules as An Administrator but the same error occurs. Environment: Windows 10, Node Version: 10.15.3, ...
Griseld Gerveni's user avatar
14 votes
3 answers
10k views

Rebuilding expo bundle with a different slug

I changed the name of a React Native/Expo app and wanted to change the slug to go with it, but got the error "CombinedError: [GraphQL] Experience with name '@-----/newName' does not exist". ...
dannnny's user avatar
  • 147
14 votes
31 answers
90k views

Can't run "npm install expo-cli --global"

I am a newbie in all this stuff. Hope for your understanding. Let me clarify the issue: I am trying to start react native app through expo cli. So tried to start npm install expo-cli --global to ...
Jaloliddin Jaloliddinov's user avatar
14 votes
5 answers
17k views

Expo Error on launching the app. "ApiV2Error: Account not found. "

Good day, I am using and expo version 5.4.12 I tried running my app I got an error on launch "ApiV2Error: Account not found.     at ApiV2Client._requestAsync" anyone who had this issue ? ...
mingmingming's user avatar
14 votes
4 answers
22k views

Expo Error starting tunnel Failed to install @expo/ngrok@^2.4.3 globally

I'm trying to run expo with a tunnel connection and I keep getting the following error: Error starting tunnel Failed to install @expo/ngrok@^2.4.3 globally: npm exited with non-zero code: 243 I've ...
SamH's user avatar
  • 221
14 votes
1 answer
24k views

How to use older version of Expo with the mobile app?

i have a project using expo version 30.0.1 i don't want that to change the app was created using CRNA when i try to run npm start and i choose ios or android the expo mobile app on the simulator ...
Surafel's user avatar
  • 735
14 votes
2 answers
17k views

How to save image to Camera Roll using Expo?

I'm creating an app using Expo to take picture, I'm already possible to save pictures to FileSystem.documentDirectory, but this is not what I want. I tried to save image to Camera Roll using code ...
Lai32290's user avatar
  • 8,438
14 votes
8 answers
18k views

Admob : Ad serving is limited - The number of ads you can show has been limited. For details, go to the Policy center

I'm new to admob. I published my first android app (written in expo react-native). I followed the instructions https://docs.expo.dev/versions/latest/sdk/admob/ on including admob ads in my app. But ...
Sandeep Amarnath's user avatar
14 votes
5 answers
34k views

React Native Expo Environment Variables

So I'm happy with the concept of environment variables as explained in this article and others https://www.freecodecamp.org/news/how-to-gracefully-use-environment-variables-in-a-react-native-app/ ...
Ash Hogarth's user avatar
14 votes
5 answers
16k views

Expo : cannot find a module LogReporter

I have created a React Native Project and I was trying to open that project in Expo XDE. It throws the following error: Cannot find module ...\node_modules\expo\tools\LogReporter Firstly I ...
Sadhu's user avatar
  • 890
14 votes
4 answers
9k views

Unable to get started with a new Expo project | Node.js version 14.0.0 is no longer supported

I am just getting started with Expo and trying to create my first project. I installed Node.js (v14.0.0) via Homebrew, and installed installed expo-cli using npm by running the following command as ...
Nimesh Neema's user avatar
  • 1,640
14 votes
4 answers
10k views

How do I use react-native-google-mobile-ads with Expo and Expo Go?

How do I use react-native-google-mobile-ads with Expo and Expo Go? (e.g. Banner Ads) A minimal example within the context of Expo would be very much appreciated. All the online google documentation as ...
Crazy Chenz's user avatar
14 votes
5 answers
6k views

Prevent Require Cycle warnings on terminal

I'm continuously getting Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. warning on my terminal and it has make debugging my ...
CraZyDroiD's user avatar
  • 6,993
14 votes
3 answers
20k views

class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient') in react native

This was working fine earlier. Possible Unhandled Promise Rejection (id: 0): Error: Encountered an exception while calling native method: Exception occurred while executing exported method ...
Gourav Mishra's user avatar
14 votes
1 answer
7k views

React-Native expo POST Blob

I'm using react native with expo and I'm trying to POST a blob image through fetch api. I'm using form-data format for the body and i have the next code: const blob = await response.blob() ...
Axel Ros's user avatar
  • 735
14 votes
3 answers
11k views

differences between create-react-native-app and exp init

I found that create-react-native-app is based on expo. but when using exp-cli, it is also based on Expo. what are differences between create-react-native-app and exp init ?
Ho Yun  Lee's user avatar
14 votes
5 answers
15k views

React Native local images load slowly

I'm building an app using React Native with Expo. Everything works fine except the images, they load correctly but it takes about 2 seconds to load, and it's weird because all the images are local ...
Simone Romani's user avatar
14 votes
4 answers
12k views

No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?

I'm getting these warnings when I run my expo / jest project and I'm not sure why, seemed to not come up when googled. console.warn The "EXNativeModulesProxy" native module is not ...
ThomasReggi's user avatar
  • 58.1k
14 votes
2 answers
10k views

Expo Web failed to compile "optional chaining"

Looks like Expo Webpack doesn't optional chaining. I found this when I tried to install UI Kitten to Expo Web app. This is the compile error after I added UI Kitten to the newly created Expo app ...
sujameslin's user avatar
14 votes
1 answer
670 views

Error : Cannot read property fetch. Using jest-expo with react native

TypeError: Cannot read property 'fetch' of undefined at node_modules/whatwg-fetch/fetch.js:4:8 at Object.<anonymous> (node_modules/whatwg-fetch/fetch.js:466:3) at Object.<anonymous> ...
Vyas Reddy's user avatar
  • 1,256
14 votes
2 answers
9k views

Expo cannot open development build on android emulator

I'm trying to run my Expo managed project on Android simulator with npx expo run:android. I have expo-dev-client installed. When I run npx expo run:android, it fails with the message: CommandError: ...
hayata_suenaga's user avatar
13 votes
4 answers
48k views

How to use google reverse geocoding with react native Expo?

I want to put in my application a button that when pressed return the current address of the cell phone. The latitude and longitude I am able to return correctly, and to convert this data into an ...
Magas's user avatar
  • 518
13 votes
5 answers
26k views

React Native Expo - Node.js version 11.13.0 is no longer supported

I'm using Expo with React Native but when trying to create a new project I get the error: ERROR: Node.js version 11.13.0 is no longer supported. expo-cli supports following Node.js versions: * >=...
Hasen's user avatar
  • 12.2k
13 votes
3 answers
14k views

Can't debug expo project on vscode

I have an expo project, which we can run and build and it works correctly in android and iOS. What I want is to debug said project using my Visual Studio Code. I followed some guides and tried the ...
Rodrigo Brickman's user avatar
13 votes
2 answers
12k views

React native Expo Version code 1 has already been used. Try another version code

After updating my app I am trying to upload my expo app to the playstore but getting error again and again. I changed the version in app.json version": "2.0.0" and also try this version&...
Bilal Yaqoob's user avatar
13 votes
12 answers
39k views

I am trying to install eas cli and am getting the error: zsh: command not found: eas

I am in the root folder and type: yarn global add eas-cli I then get: yarn global v1.22.19 warning ../../package.json: No license field [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [...
ttsssss's user avatar
  • 185
13 votes
4 answers
18k views

Can't run 'expo start' on a expo-react-native app, permission problem

Well, i see that already have many questions related to my problem on this site, but i also see that NONE of the solutions work for my specific case, because of that, i am opening that question, so it ...
Paulo Roberto Rosa's user avatar
13 votes
2 answers
7k views

I can't run my expo project since I updated expo-sdk

When I try to run my expo project I get this message: D:\React\myproject>npm start > start > expo start Starting project at D:\React\myproject Unable to find expo in this project - have you run yarn ...
Diogo Pinheiro's user avatar
13 votes
4 answers
9k views

How to use @expo/vector-icons dynamically through props in typescript react native app?

react native app with typescript and I'm trying to create icon button that uses @expo/vector-icons with Fontawesome or MaterialIcon dynamically by trying to pass a name as a string via props. I think ...
Sheessai's user avatar
  • 135
13 votes
7 answers
27k views

"Error: Cannot find module 'metro-core'" when starting an Expo project

Whenever I start Expo Go with the expo start command, this error appears : Error: Cannot find module 'metro-core' Require stack: - /usr/local/lib/node_modules/expo/node_modules/@expo/cli/build/src/...
Radwa Ahmed's user avatar
13 votes
5 answers
19k views

How to check for an internet connection in an Expo React Native app?

I have an Expo app using the Managed workflow. The app needs to check whether an internet connection is available. I can't import { NetInfo } from 'react-native' because that's deprecated. I can't ...
Dan B.'s user avatar
  • 1,543
13 votes
3 answers
25k views

How do you set default `CONNECTION` to `tunnel` with Expo?

When running expo ios, the default connection type is LAN. Via app.json, metro.config.js, or .env, how does one configure type tunnel to be the default?
vadersfather's user avatar
  • 8,959
13 votes
3 answers
17k views

Suddenly seeing error "Plugin/Preset files are not allowed to export objects, only functions" in create-react-native-app project

Have been working on a project generated via create-react-native-app. Have been successfully using the project for some time, but now trying to test the app via exp start --tunnel, am suddenly seeing ...
lampShadesDrifter's user avatar
13 votes
3 answers
16k views

Promise allSettled is not a function

I planned updating some Promise.all to Promise.allSettled in my React Native - Expo Project but the function does not Exist. i checked all Versions and everything fits but i still cant use the ...
jovan's user avatar
  • 337
13 votes
1 answer
5k views

React Navigation v6 NavigationContainer linking attribute with nested navigation typescript issue

I am using react navigation 6 with a root stack navigator containing a tab navigator. My linking attribute config looks like this in the App component: export default function App() { const ...
Smiter's user avatar
  • 1,197
13 votes
4 answers
15k views

View or open PDF files stored locally Expo React Native

Is there a solution to view or open PDF Files using Expo (without Expo eject)? It's not necessary to open file inside App, it's can be a local filemanager. What i tried: Linking does not open ...
user avatar
13 votes
3 answers
11k views

Create an expo project with a specific version

How do you specify the expo version when creating a project? Such as in React Native you can just add the version in the command like this react-native init projectName [email protected] What about in ...
Eaten Taik's user avatar
13 votes
16 answers
13k views

New update available on Expo, infinite downloading

I'm new to developping with Expo. That new that I haven't started developping yet because of an issue. I followed a tutorial which shows how to use Expo to see how our app is doing. (https://...
Alexandre de Temmerman's user avatar
13 votes
1 answer
42k views

Why React-Native Couldn't start project on Android connection with Expo?

Couldn't start project on Android. Error : No Android connected device found, and no emulators could be started automatically. Please connect a device or create an emulator (https://docs.expo.io/...
Mohsen Bakhtiyar's user avatar