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
28
votes
8 answers

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 'react'; import { createStackNavigator } from…
Andrew
  • 592
  • 1
  • 7
  • 17
28
votes
2 answers

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, I run npx tsc every once in a while and fix…
anar
  • 529
  • 7
  • 10
28
votes
11 answers

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.SimulatorTrampoline'; don't know what that is. Simulator not…
Ahmed Nagy
  • 281
  • 1
  • 3
  • 3
28
votes
4 answers

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 : Couldn't start project on Android: Error running…
Faris Dewantoro
  • 1,597
  • 4
  • 17
  • 31
28
votes
4 answers

Scroll through the view when keyboard is open (React Native / Expo)

I am having a hard time using a KeyboardAvoidingView on my Expo app. I would like to meet the following requirements: When the keyboard opens, the view should scroll up so that the user always sees the input. That is the purpose of…
Arnaud
  • 4,884
  • 17
  • 54
  • 85
28
votes
5 answers

How to build Expo APK local

Is it possible to build the APK of an expo app locally? The doc says: If you haven’t used exp before, the first thing you’ll need to do is login with your Expo account using exp login. I tried exp start, exp build:android but the commands require…
Piu130
  • 1,288
  • 3
  • 16
  • 28
28
votes
7 answers

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?
cseelus
  • 1,447
  • 1
  • 20
  • 31
28
votes
1 answer

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 staying as pure and clean as possible without too…
Sam
  • 26,817
  • 58
  • 206
  • 383
27
votes
16 answers

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 why. If I just keep running expo start over and…
Zaytri
  • 2,582
  • 2
  • 13
  • 19
27
votes
6 answers

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 app version number is the same). Is there a way to…
Avery235
  • 4,756
  • 12
  • 49
  • 83
26
votes
20 answers

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-project Unable to find expo in this project - have you…
Ishika IT
  • 299
  • 1
  • 3
  • 4
26
votes
8 answers

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 EXPO_DEBUG=true in your env to view the stack…
Wilfredo Casas
  • 419
  • 2
  • 6
  • 14
26
votes
2 answers

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 the console: Opening DevTools in the browser...…
Zaytri
  • 2,582
  • 2
  • 13
  • 19
26
votes
14 answers

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 when Expo configuration is set to LAN mode.…
Nah
  • 1,690
  • 2
  • 26
  • 46
25
votes
4 answers

How to build expo apk using eas build

After updating expo it no longer supports building apk files using expo build:android -t apk and instead advices to using eas builds using the command eas build -p android --profile preview but it ended up building an aab instead of the apk. I took…
coolDog
  • 476
  • 1
  • 3
  • 11