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.

Expo lets web developers build truly native and Web applications that work across iOS, Android and Web by writing them once in just JavaScript. It's an open source, free toolchain built on top of React Native.

Resources

14725 questions
15
votes
3 answers

"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 command: npx create-expo-app my-app --template I…
pjb3
  • 5,191
  • 5
  • 25
  • 44
15
votes
2 answers

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 getting this error: While trying to resolve module…
KrishP
  • 165
  • 1
  • 6
15
votes
5 answers

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 = { prefixes:[prefix], config: { screens: { …
sagi
  • 40,026
  • 6
  • 59
  • 84
15
votes
3 answers

Unable to get a Expo Push Notifications Token

I am working on react native Expo's Push Notifications. I just started and unable to get the Expo Push notification token. I added the following code: token = await Notifications.getExpoPushTokenAsync(); console.log(token); and getting the error…
Code Lover
  • 723
  • 1
  • 10
  • 24
15
votes
3 answers

Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`

in react-native, I have: Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`. I have a postalCode and it is numeric value. I have set the keyboardType="numeric" on but I still…
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204
15
votes
9 answers

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 public wifi, one using home wifi and lastly using…
Irvin ting sie ze
  • 163
  • 1
  • 1
  • 6
15
votes
1 answer

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 : takePicture = async function() { if…
Jaro
  • 1,587
  • 5
  • 20
  • 39
15
votes
6 answers

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 Expo XDE. I am also running on a windows…
johnobc
  • 571
  • 3
  • 11
  • 25
15
votes
8 answers

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 that my API calls (Axios) is located on…
Kevin Gozali
  • 319
  • 1
  • 3
  • 9
15
votes
8 answers

Error running adb: Error running app. Error: Activity not started, unable to resolve Intent

Hi I am trying to run 'yarn android' on my react-native project. And am running into the following error: yarn android v0.27.5 $ react-native-scripts android 10:37:45 AM: Starting packager... 10:39:34 AM: Starting Android... 10:39:37 AM: Packager…
narahan
  • 381
  • 1
  • 3
  • 9
14
votes
3 answers

Expo SDK 45 splash screen with react navigation

I just upgraded to Expo SDK 45 and i got a warning: "expo-app-loading is deprecated in favor of expo-splash-screen: use SplashScreen.preventAutoHideAsync() and SplashScren.hideAsync() instead.…
Bert Van Hecke
  • 211
  • 2
  • 12
14
votes
7 answers

`Firebase` package was successfully found. However, this package itself specifies a `main` module field that could not be resolved

I'm trying to read and write to firestore, use firebase's authentication, and firebase's storage within a expo managed react-native application. Full Error: While trying to resolve module `firebase` from file…
Joshua Gao
  • 141
  • 1
  • 1
  • 7
14
votes
7 answers

How to apply custom fonts to whole project, Expo React Native

I'm new to React and those languages. Trying to apply a custom google font(Ubuntu) to whole project. I managed to pull the font into the project, but I can only use it in simple texts in App.js. Like this: import React, {useState} from…
Uğur Alp
  • 141
  • 1
  • 1
  • 4
14
votes
0 answers

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/facebook/react-native/issues/12786 and…
user
  • 183
  • 1
  • 2
  • 9
14
votes
4 answers

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 mentioned in the Expo quick start guide: # Install…
Nimesh Neema
  • 1,528
  • 2
  • 17
  • 44