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.
16,527
questions
30
votes
6
answers
96k
views
React Native - navigation issue "undefined is not an object (this.props.navigation.navigate)"
Im following this tutorial https://reactnavigation.org/docs/intro/ and im running into a bit of issues.
Im using the Expo Client app to render my app every time and not a simulator/emulator.
my ...
30
votes
11
answers
74k
views
How to upgrade expo sdk to specific version
I want to upgrade my expo sdk version step by step as recommended in the documentation. These are the instructions:
Update to the latest version of Expo CLI: npm i -g expo-cli. [email protected] or ...
30
votes
1
answer
782
views
React Native - iOS - Local image invisible (works on android)
I'm mapping TouchableOpacity with an Image nested inside of it. It works great on Android but on iOS the image is invisible. There is still a 75x75 touchable opacity that I can tap but the image is ...
29
votes
4
answers
16k
views
expo for ios - 'Unable to determine runtime bundle when booting device
Trying to start an expo project on a Macbook (Mid-2012) and the following error occured:
*** Assertion failure in -SimDevice _onBootstrapQueue_bootWithOptions:error:, SimDevice.m:2057
2021-12-25 21:21:...
29
votes
9
answers
28k
views
spawn yarnpkg ENOENT
This happens when I run expo install expo-permissions
It explicitly returns me
Installing 1 SDK 35.0.0 compatible native module using Yarn.
yarn add expo-permissions@~7.0.0
spawn yarnpkg ENOENT
Set ...
29
votes
4
answers
81k
views
Expo run on android emulator using windows 10
Can I run android emulator without an android phone? I have installed android studio and I've already installed android virtual device. However, when I try to run it, it gives an error like this :
...
29
votes
8
answers
15k
views
Read app.json (or exp.json) programmatically
Is there a way to read the contents of app.json programmatically from within you app, so you could for example get the current version number and show it within an About screen?
29
votes
5
answers
12k
views
Main module field cannot be resolved after installing @apollo/client
I'm running into an error after installing Apollo when trying to run my React Native Expo app. I've tried deleting node-modules and re-installing, resetting cache, restarting computer, and still no ...
29
votes
2
answers
43k
views
react native link using expo?
How can I use react-native link or How can I link a third party library manually in IOS and Android using exponent.
I was trying to link react-native-image-crop-picker but unable to use in exponent.
28
votes
21
answers
120k
views
Unable to find expo in this project - have you run yarn / npm install yet?
I'm Unable to execute the expo start command.
Error Message:
PS C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-project> expo start
Starting project at C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-...
28
votes
19
answers
90k
views
"Command PhaseScriptExecution failed with a nonzero exit code" when archiving
so I have an app built with Expo but then ejected to get ios and android folder everything works fine on both android and ios I have published it for android but on ios when I try to archive the ...
28
votes
8
answers
50k
views
React navigation 5 hide tab bar from stack navigator
I wanted to know how to hide the bottom tab bar from a specific screen inside my stack navigator that is nested on a material bottom tab bar
This is my code for my stack navigator
import React from '...
28
votes
11
answers
33k
views
Expo React-Native iOS Simulator not working
Hello I'm facing a problem with Expo React-Native. Whenever I try to launch the iOS Simulator. I get this error:
Simulator is installed but is identified as 'com.apple.CoreSimulator....
28
votes
6
answers
25k
views
Expo get unique device id without ejecting
This library allows you to get unique device id / Mac address of Android devices, which doesn't change after reinstallation.
Expo.Constants.deviceId changes after every reinstallation (even if the ...
28
votes
1
answer
30k
views
Converting Existing React Native Projects to Expo
I'm considering building mobile apps in React Native using Expo and I noticed under FAQ that existing React Native projects can be converted to Expo.
What exactly are we converting? I really like ...
28
votes
2
answers
3k
views
Why does my React Native app build successfully despite TypeScript compiler error?
I've recently started using TypeScript with Expo. I've done all the linter/formatter integrations like typescript-eslint so I can catch most of the errors during coding. To check if the code compiles, ...
27
votes
12
answers
42k
views
Why is expo not refreshing when I save changes?
When I make changes and save them, the app in my emulator is not being refreshed; the emulator is not connected to the metro server I think.
I tried to clear cache by running expo -r -c, but this didn'...
27
votes
15
answers
47k
views
Expo LAN configuration doesn't work for New ReactNative Project
I have seen similar questions on Stackoverflow but none sorted the problem. I have just created new ReactNative project from Expo desktop app. But I can not run it on my Android phone via QR code scan ...
27
votes
2
answers
9k
views
How do you detect development mode in Expo?
You can turn development mode on and off in the expo XDE, but how do you detect it in your code so you can switch on debug logging or do something differently for the debug build? Their docs show how ...
26
votes
16
answers
25k
views
React Native project, sometimes getting 'connect ECONNREFUSED 127.0.0.1:19001' using expo start
I'm using expo-cli 2.6.14, react-native 0.57.1, Expo SDK 31.0.0. In order to start the project to run on the Expo app, I use expo start. Sometimes it works, sometimes I get an error and I have no idea ...
26
votes
2
answers
40k
views
React Native Bullet Character? or Unicode?
I want to use Bullet Character/ Small Circles used for passwords in React Native Text component. Is there a way to create them without using package.
I am thinking of creating a rounded View with ...
26
votes
7
answers
22k
views
React Native `RuntimeError: abort(Error: xcrun exited with non-zero code: 2` on iOS simulator
I was working on a React Native project with a group and was asked to use the iPhone 13 simulator as a model while working. I only had access to the iPhone 12 simulator, and I saw that my XCode was a ...
26
votes
7
answers
54k
views
How to fix npm start "cannot determine native SDK version" error?
I'm trying to run my react native code from a github repository on ubuntu by using npm start and expo. When I run npm start I get the follow error:
"Cannot determine which native SDK version your ...
26
votes
8
answers
44k
views
"RNGestureHandlerRootView" was not found in the UIManager
I need to fix this error.
Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager.
This error is located at:
in RNGestureHandlerRootView (...
26
votes
2
answers
12k
views
How do I disable opening DevTools in the browser when running expo start?
When I run expo start (expo cli 2.6.14) in my react native project, it always opens a browser window with the DevTools. It's a nice feature, but sometimes I'd rather not have that happen.
It says in ...
25
votes
12
answers
27k
views
Expo React-Native Android build not updating Version Code for Google Play
I built a React-Native android app and uploaded to Google Play, which worked fine.
Now I have a new build I am trying to upload (had no issues uploading to itunes Connect), and Google Play is giving ...
25
votes
3
answers
51k
views
How do I run an app on a real iOS device using Expo?
I am using Expo to run my application. I am able to see two options in Expo XDE:
open on iOS simulator
open on Android
I want to run my app by directly connecting to my device. Is it possible with ...
25
votes
4
answers
20k
views
how do I get SHA-1 certificate in expo?
Is there a certain command in expo to get the certificate?
All the guide I find are for just react-native which tell me to go to android folder.
23
votes
4
answers
23k
views
"TypeError: minimatch is not a function" error when running new expo project
I have the following libraries installed on my M1 Macbook running Ventura 13.3.1:
$ nvm -v
0.39.3
$ node -v
v18.16.0
$ npm -v
9.6.4
$ npx expo -v
0.7.0
I generated a new expo project using the ...
23
votes
4
answers
44k
views
npx pod-install returns "CocoaPods is not supported in this project"
Context: I'm trying to create a React Native App with react-native-video. The iOs installation instruction starts with npx pod-install.
Running:
npx pod-install
Returns:
npx: installed 1 in 1.113s
...
22
votes
15
answers
26k
views
How to fix jlink does not exist?
i am working with react native and am trying to use expo in a bare project but whenever i try to run the app with the command npm run android, i get this error :
Execution failed for task ':expo-...
22
votes
3
answers
28k
views
How do I force an expo app to update
I have an app written in expo, and can't figure out how to push a new build. On the expo site if I run the app from the QR code the app is correct, but the native app from the app store doesn't update....
22
votes
2
answers
9k
views
Difference between ExpoKit and React Native project
I did a lot of research now to find out the exact differences and trade-offs between a React Native project, CRNA and an Expo project.
My main guidance was this
However I still don't understand what ...
22
votes
2
answers
21k
views
Error: No native splash screen registered for given view controller. for react-native expo using expo-splash-screen
Unhandled promise rejection: Error: No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.
I get the following warning only on my ios ...
22
votes
4
answers
7k
views
com.segment.analytics.android:analytics error while submitting my app to Google Play Console
I am trying to submit my React Native EXPO app to Google Play Store for approval, but I am getting this error:
SDK Segment Analytics Android (com.segment.analytics.android:analytics), 4.9.4 collects ...
22
votes
1
answer
1k
views
React native (expo) web view Error net::ERR_CACHE_MISS
I am using react native(expo) and try to use web view package
And i am getting this warning in console and didn't see anything on mobile screen.
"sdkVersion": "36.0.0",
"expo": "~36.0.0",
...
21
votes
4
answers
9k
views
react-native swipeable gesture not working on android?
I am doing a react native course with Mosh (https://codewithmosh.com/). I am using expo. I am very new to react native and don't really know what I am doing, but I know my code should work. I double-...
21
votes
3
answers
51k
views
Open react native project in xcode
I'm sure I'm missing something simple. I have a React Native project working and I'm attempting to get it on the app stores. Following those instructions, after I have created my provisioning profile ...
21
votes
9
answers
15k
views
How can i connect my phone to expo when using WSL2 to run it
Whenever i try to run expo start or npm start the IP for it is not my LAN IP but my WSL2 eth0 IP and this will cause my phone not connecting to the expo .
i have already tried to set ...
21
votes
4
answers
18k
views
expo is out of date uninstall and run again to upgrade
when running my app on ios simulator, I am getting the following error This version of the Expo app is out of date. Uninstall the app and run again to upgrade.
Here is how I tried to upgrade expo-cli ...
21
votes
6
answers
43k
views
React Native - Expo: fontFamily 'SimpleLineIcons' is not a system font and has not been loaded through Font.loadAsync
So I get this error on Android device/emulator:
On iOS on the other hand, it's compiling just fine and the simple-line-icons are displayed properly.
I'm running the latest version of expo.
My ...
21
votes
3
answers
24k
views
Passing Object Using Expo Router
I need to pass an object from one screen to another using expo-router
I have a screen that shows a FlatList with items and a detail screen that would show more information about the item. The ...
21
votes
7
answers
23k
views
Unable to use typescript with expo - "It looks like you're trying to use TypeScript but don't have the required dependencies installed"
I am receiving an error while trying to use Typescript with my existing expo project.
While following the docs, I created a tsconfig.json file in the project root.
When running expo start, I am ...
21
votes
4
answers
13k
views
React Native Getting this error 'Unrecognized operator abs'
Getting this error when adding react-navigation-drawer to my expo project, any idea how to fix this?
21
votes
3
answers
2k
views
React Native EXPO Apple upload fail [closed]
I created the app through Expo.
I uploaded the ipa through the Application Loader, and it was rejected as the message below.
What is the problem?
This bundle is invalid - The Info.plist file for
/...
21
votes
1
answer
3k
views
Setting up Detox with Expo on Android
I'm trying to set up Detox with Expo on Android emulator (Genymotion) but I have an error that I can't go through....
I've installed the necessary packages :
Detox
detox-expo-helpers
expo-detox-...
20
votes
16
answers
41k
views
Unable to connect Android phone to my project with Expo
I created my project in react native by CLI:
_npm install -g create-react-native-app
_create-react-native-app AwesomeProject
_cd AwesomeProject
_npm start
Then I installed expo in my Android phone, ...
20
votes
21
answers
63k
views
Could not load exp:// Something went wrong
I have created a project using Expo XDE. I checked this Can't load expo app: Something went wrong but I have already enabled "Draw over other apps". It works https://expo.io/@ajaysaini/first-proj ...
20
votes
20
answers
39k
views
Can't connect my Android Phone in Expo React Native Project
I'm using Expo App in my Android Device to connect into the my Laptop's Expo (Signed in both my same Expo's Account)I am also connected in the same network. Then I scanned my code then after that it ...
20
votes
12
answers
41k
views
Where to Set EXPO_DEBUG value in ReactNative app?
When I try to login in expo I got this error :
[exp] Set EXPO_DEBUG=true in your env to view the stack trace.
Do you know where exactly I have to set the value of EXPO_DEBUG?