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
351 votes
12 answers
183k views

What is the difference between Expo and React Native?

From the Expo website Expo lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript. Isn't this what React Native does? What's the ...
Aurora's user avatar
  • 3,543
358 votes
38 answers
493k views

Hide header in stack navigator React navigation

I'm trying to switch screens using both stack and tab navigator. const MainNavigation = StackNavigator({ otp: { screen: OTPlogin }, otpverify: { screen: OTPverification}, ...
Avijit Dutta's user avatar
  • 3,811
0 votes
1 answer
811 views

How to load custom fonts with the useFonts hook in React Native

While waiting for a custom font to load, it's preferable to not render anything until the font is ready. In the bad old days (December 2021), I learned to use the <AppLoading /> component in the ...
Henke - Нава́льный П с м's user avatar
11 votes
2 answers
7k views

How to add network_security_config.xml to manifest in expo app without ejecting

I'm building an app with expo. Using Axios to handle the requests. The API has a self-signed certificates. Requests fail on android 7 (they work on android 9) I read online that I need to add a ...
Antoine S's user avatar
  • 121
108 votes
17 answers
57k views

Xcode 15: Unable to boot the Simulator

I was able to run iOS simulator fine with Xcode 14 and my Mac recently updated the latest version of Xcode which is 15 then I'm no longer able to boot a device from its new simulator. I did try many ...
tmhao2005's user avatar
  • 16.9k
53 votes
11 answers
66k views

How to reduce the size of an expo/react-native app on Android

I am developing a small dictionary app by using react native with expo. As I am compiling to Apk file. The size goes up to 30mb and after having installed on a device, it goes to 80mb. Is this ...
Sras's user avatar
  • 2,118
1 vote
1 answer
2k views

Extend (Update) third-party old type declaration interface with new one

My problem is that I'm using an old type declaration package (@types/expo). So that's why I need to update some part of it. I created a new typing file like this. (./typings/expo/index.d.ts) import * ...
the_bluescreen's user avatar
9 votes
2 answers
4k views

React Native Blob fetch throws error: Failed to construct 'Response': The status provided (0) is outside the range [200, 599]

I am trying to convert an image to blob for uploading it to aws s3 storage.I need to connvert image to blob after selecting the image with expo-image-picker the convert to blob using fetch but it is ...
Niyooooo's user avatar
  • 123
7 votes
3 answers
8k views

What is the best way to store private data in react-native?

How can i implement feature like remember me when authenticating via react application? I think unencrypted AsyncStorage isn't the best way to do it, because data is open for users. I've tried to use ...
IC_'s user avatar
  • 1,737
0 votes
0 answers
579 views

Expo app connection with NodeJS stops working with sockets

I have an app built with expo and nodejs. Everything is working fine and accordingly. Recently i created an admin panel with ReactJS and trying to create an in app message feature inside my expo app ...
kd12345's user avatar
  • 763
204 votes
19 answers
152k views

Error Appstore connect : Missing Purpose String in Info.plist File

I've submitted my app for review to the App Store Connect. Although the app is still under review, I've received an email to inform me that I have to fix an error. Here is the content of the message: ...
John doe's user avatar
  • 3,840
148 votes
7 answers
116k views

Cannot add task 'wrapper' as a task with that name already exists

When installing 'react-native init AwesomeProject' I get this error when I run react-native run-android: Could not determine java version from '11.0.1'. A quick google suggests I need to update the ...
Ben Kemp's user avatar
  • 1,511
85 votes
39 answers
107k views

Network Response Time Out Error (create-react-native-app) (expo)

I am trying to run create-react-native-app on expo app in android. Firstly ,I created the project by writing command create-react-native-app test then I executed npm start then scanned the qr ...
YaSh Chaudhary's user avatar
59 votes
20 answers
136k views

'expo' is not recognized as an internal or external command

After running npm install -g expo-cli and successfully installing the packages globally, expo is still not recognized as an internal or external command. Does anyone know how I might get around this ...
jf___'s user avatar
  • 601
50 votes
17 answers
47k views

Calling locally hosted server from Expo App

I am creating a react-native app and one of the components I have created contains a property which is populated through data coming from an http request. Right now I am hosting the server from my ...
iSeeJay's user avatar
  • 823
40 votes
15 answers
67k views

React Native Expo change default LAN IP

I've got virtual box installed. And when I look at the host > LAN > ip address is exp://192.168.56.1:19000. How can I change it without disable the network? because it's my virtualbox ip and my ...
ssuhat's user avatar
  • 7,597
1 vote
1 answer
1k views

"$expo start" not opening the metro bundler in chrome anymore

Running expo start used to automatically open a useful UI on the browser in regards to the Metro Bundler, and now it's gone from all the boilerplate apps, so I can only assume it's been dropped by ...
Storycoding's user avatar
50 votes
10 answers
33k views

React-native bundling failure. ERROR MESSAGE: "While trying to resolve module 'idb'..... Indeed none of these files exist":

ERROR MESSAGE IN QUESTION: While trying to resolve module idb from file C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\@firebase\app\dist\esm\index.esm2017.js, the ...
JohnyClash's user avatar
42 votes
6 answers
62k views

How can I upload a photo with Expo?

I'm making an app with Expo and want to let the user take a photo or pick one from their camera roll and upload it to my server. How do I do this?
ide's user avatar
  • 20.6k
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 ...
Avery235's user avatar
  • 5,156
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
4 votes
2 answers
27k views

React Native Expo - Custom Fonts Not Loading With Font.loadAsync

I'm up to date on the latest Expo version but for some reason, I can not get a simple custom font going. Here is a fresh project I set up attempting to get a custom font installed. import React, { ...
user avatar
4 votes
5 answers
8k views

Getting the following error while executing expo init command

Installing dependencies... npm WARN deprecated [email protected]: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. npm ERR! path git npm ...
Syed Haider Raza's user avatar
41 votes
7 answers
66k views

How to reduce Android APK size in react-native?

I am working on react native project , but whenever i am building an Apk file , it give me Apk of 47MB. I tried every documentation which i found useful on google but nothing works for me, Is there ...
Parshant Dutta's user avatar
15 votes
5 answers
20k views

Can't find a variable atob

Screen1.js import React,{useEffect} from 'react' import {View,Text} from 'react-native' import * as firebase from 'firebase/app'; import '@firebase/firestore'; const Screen1 = props =>{ ...
Pradeep's user avatar
  • 818
15 votes
4 answers
19k views

Cannot open phone call with Linking.openURL

Description Cannot open phone call with Linking.openURL('tel:+123456789') Environment Environment: OS: macOS High Sierra 10.13.4 Node: 8.5.0 Yarn: Not Found npm: 5.8.0 Watchman: Not ...
user avatar
5 votes
3 answers
9k views

Expo-Router Bottom tabs with nested Stack Screen

I am trying the new Expo-Router with a complex nesting navigation, currently i'm trying to display a screen with a presentation of modal, which itself is a part of a bottom tab navigation, but it is ...
dev1ce's user avatar
  • 1,659
3 votes
2 answers
2k views

Fresh Detached Expo + RNFirebase not running on Android

So I'm trying to start an app using the Detached Expokit and React Native Firebase (v3) I made a fresh project with exp cli, followed all the instructions at https://invertase.io/react-native-...
Anthony Maldarelli's user avatar
3 votes
1 answer
3k views

React native project with expo-localization and i18n-js

i am currently trying to implement localization depending on the system language of the device but something is not working as required. I followed the exact same code on expo documentation, for eg. ...
kd12345's user avatar
  • 763
1 vote
1 answer
746 views

expo auth session spotify get refresh token

I am trying to do spotify login via the expo-auth-session on my expo app In the expo-auth-session doc, https://docs.expo.dev/guides/authentication/#spotify I understand that the auth code flow gives ...
Jayden Yu's user avatar
136 votes
9 answers
240k views

How can I clean (reset cache) of React Native using Expo. Not sure if it is cache issue

I am building a simple React Native app with create-react-native-app using only react-navigation and base-64(base 64 encode/decode) as dependencies. Over time starting the app became slower and now ...
Nedko Dimitrov's user avatar
107 votes
16 answers
159k views

React Native iOS and Android folders not present

I'm new to react native, and I've been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creation. Basically, when creating ...
Simon Eliasson's user avatar
74 votes
10 answers
117k views

Implement pull to refresh FlatList

please help me out to implement pull to refresh on my app, I'm kinda new to react native, thanks. I don't know how to handle onRefresh and refreshing. class HomeScreen extends Component { state = { ...
petros's user avatar
  • 821
68 votes
0 answers
48k views

What is the difference between Expo CLI and React Native CLI? [duplicate]

React Native provides two way to create Project. First: npm install -g expo-cli Second: npm install -g react-native-cli so what is different between them and what should be used if we create ...
Jitendra Kumar's user avatar
66 votes
12 answers
194k views

How do you format a number to currency when using React native Expo?

How do I take a number like 10000 and have it output as $10,000.00? I even had a problem with String.format(...) with a Not a function error. I followed numerous articles, all incomplete and none ...
Choco's user avatar
  • 1,388
58 votes
3 answers
84k views

Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager [closed]

Implementing React Navigate in the project installing the package npm install @react-navigation/native @react-navigation/stack shows the following error. Can anyone help me with this issue?
da coconut's user avatar
45 votes
38 answers
157k views

Can't load expo app: Something went wrong

I've created an expo app with exp init MyApp command and started it by running exp start in MyApp directory. Then I'm scanning barcode which was printed in console with expo mobile app on android ...
humkins's user avatar
  • 10.4k
36 votes
13 answers
11k views

Android Material and appcompat Manifest merger failed in react-native or ExpoKit

I updated 'android.support:appcompat-v7' to 28.0.0. But it brought an error from the build. Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com....
hong developer's user avatar
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 ...
user3676224's user avatar
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 ...
Sam's user avatar
  • 29.2k
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 '...
Andrew's user avatar
  • 612
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 ...
Surafel's user avatar
  • 735
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 ...
Nah's user avatar
  • 1,738
16 votes
3 answers
23k views

Disable Debugging in Expo For React Native App

So I've opened up my react-native app in Expo today (using the iOS simulator) and I am creating by what looks like a debugging overlay. Screenshot here: I don't need this and it's blocking some of ...
Jack Robson's user avatar
  • 2,262
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
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
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
11 votes
2 answers
5k views

Firebase Firestore emulator on physical IOS / Android device

I'm trying to get the Firebase - Firestore database emulator to work on my physical IOS device via the Expo application while I develop. I can get Localhost to work in a browser and 10.0.2.2:(8080) to ...
eyerishluv's user avatar
10 votes
3 answers
5k views

Metro bundler with Expo dockerized app is not working

I'm trying to dockerize an Expo React Native app so anyone of my team partners could download the repo and then make a docker-compose up and without effort have the same expo server running in their ...
rodricass's user avatar
  • 155
9 votes
3 answers
12k views

expo-auth-session/providers/google Google.useAuthRequest

I have a problem with the implementation of Google Auth within a React Native app managed with Expo. When I try to login, the response does not contain an IdToken or the information of the user and I ...
Hadrien Jaubert's user avatar

1
2 3 4 5
16