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
12
votes
4 answers

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/ Great, I've got my SOMETHING="something" stored so I…
Ash Hogarth
  • 497
  • 2
  • 6
  • 18
12
votes
1 answer

What are the asset download mechanics of Expo and React-Native during development and production mode?

I am confused about the mechanics of Expo and React-Native, how they download the assets. The info that I know is, once you build your code, expo prepares a bundle which contains both the javascript (compiled code) and the assets altogether. And…
Mehmet Kaplan
  • 1,723
  • 2
  • 20
  • 43
12
votes
4 answers

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 use react-native-community/react-native-netinfo…
Dan B.
  • 1,451
  • 2
  • 14
  • 23
12
votes
5 answers

How I can resolve this : Warning: Encountered two children with the same key, `%s`

I am new to react-native and this is not me who program this app. Could someone help me to fix this error, I think its the flatlist who cause this because it happen only I load the page or search something on the list. I know there is a lot a…
Sam
  • 1,129
  • 2
  • 10
  • 24
12
votes
4 answers

expo sqlite use existing database

According to the expo sqlite documentation for react-native I can initialize a db like so: const db = SQLite.openDatabase('db.db'); This works and I can update the db like so: update() { db.transaction(tx => { tx.executeSql( …
FabricioG
  • 3,107
  • 6
  • 35
  • 74
12
votes
5 answers

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 program so difficult. I have…
CraZyDroiD
  • 6,622
  • 30
  • 95
  • 182
12
votes
2 answers

Expo - Network Response Time Out Error (create-react-native-app) (Windows 10)

I have the exact same problem as here: Network Response Time Out Error (create-react-native-app) (expo). Every time I try to scan the QR code from my phone on LAN, I get the network response timeout error. I've gone through every single response in…
Adam.V
  • 779
  • 2
  • 9
  • 25
12
votes
1 answer

React-Native app reverse engineering and obfuscation

Is react-native expo generated apk obfuscated? exp build:android How can I retrieve my react native JS source code back using that apk? Do I need dex to java compilers for this purpose? Looking for your valuable suggestions as I am concerned about…
artsnr
  • 952
  • 1
  • 10
  • 27
12
votes
3 answers

use create-react-native-app without expo-cli

I have set up create-react-native-app as said in the react native docs. If my project name is proj, according to the docs, the commands to be run should be : create-react-native-app proj cd proj npm start But when I run create-react-native-app, I…
TheFirstMe
  • 123
  • 1
  • 1
  • 4
12
votes
13 answers

"exp: command not found" How do I add expo cli to path?

I installed the expo cli with npm i -g exp then I run exp and I get -bash: exp: command not found I'm guessing I didn't add exp to path. So how do I do this properly? Nothing I've tried so far works.
Bobby Zhang
  • 205
  • 2
  • 6
  • 11
12
votes
1 answer

How can I get the cause of a sql error from Expo SQLite API?

Having the following code: import { SQLite } from 'expo'; const db = SQLite.openDatabase('mydb.db') db.transaction( tx => { tx.executeSql('insert into invalidTable values (?,?)', [1,2], null, (transact, err) => { //I can't find error…
Edumelzer
  • 1,066
  • 1
  • 11
  • 22
12
votes
5 answers

React Native "The expo SDK requires Expo to run. .... this code is not running on Expo."

I am coding with React Native. I don't see that when I first create react-native app for check running. When I implements my code see that. My purpose is generate apk. app.json build.gradle index.js (index.android.json) App…
Mert Ekinci
  • 123
  • 1
  • 1
  • 8
12
votes
3 answers

Module RCTEventEmitter is not a registered callable module (calling receiveTouches)

When i try to run the app after some changes i get this error. What i'm doing wrong ? Module RCTEventEmitter is not a registered callable module (calling receiveTouches) __callFunction C:\Users\Andrea…
AnXD
  • 255
  • 1
  • 4
  • 15
12
votes
1 answer

Is it possible to use more than one Babel preset in a project?

I am developing a React-Native app, which was installed using Expo, that creates .babelrc config with this code: { "presets": ["babel-preset-expo"], "env": { "development": { "plugins": ["transform-react-jsx-source"] …
Eduard
  • 8,437
  • 10
  • 42
  • 64
12
votes
7 answers

Change navigation bar color

I know it is possible since API 21 to change the color of the navigation bar. I have looked at the documentation of React Native but I can not find a way to do this. The only way I know is by creating a native module, but that does not seem like a…
Joery
  • 759
  • 4
  • 13
  • 33