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
11
votes
3 answers

React Native: Android TextInput autoCorrect={false} does not disable suggestions

autoCorrect={false} is suppose to force no suggestions mode, and therefore no underlining of text in the input field but it's not working. UPDATE 8/18/18: It seems to disable the suggestions but not the underlining.
ericjam
  • 1,501
  • 2
  • 20
  • 30
11
votes
1 answer

How to avoid Typescript transpiling Jest __mocks__

I'm getting a warning from Jest for each manual mock I have, because it finds both the .ts and .js version of it and asks me to delete one, i.e.: jest-haste-map: duplicate manual mock found: Module name: feedTestData Duplicate Mock path:…
jhm
  • 4,379
  • 5
  • 33
  • 49
11
votes
3 answers

React Native - Disable Password AutoFill Option on iOS Keyboard

In React Native, how do you disable or prevent the keyboard from displaying the Password Autofill accessory view option? There doesn't seem to be an property for TextInput that handles disabling this option. React Native TextInput Documentation. I…
David
  • 111
  • 1
  • 3
11
votes
5 answers

Cannot get current position without GPS on react-native with navigator.geolocation

Brief summary after discussion and answers: using EXPO sdk you cannot get the device location without grant FINE_LOCATION in android. FINE_LOCATION is the only method to get location, so, you cannot get the hardware.network.location. That means:…
Marcos Martínez
  • 545
  • 2
  • 9
  • 24
11
votes
4 answers

IOS Expo Push Notifications when app is in foreground

reading from the expo docs: For iOS, you would be wise to handle push notifications that are received while the app is foregrounded, because otherwise the user will never see them. Notifications that arrive while the app are foregrounded on…
superuser123
  • 955
  • 2
  • 12
  • 24
11
votes
3 answers

Expo on iOS is constantly refreshing my React Native app on MacOS, caused by Dropbox / iCloud

I'm building a simple React Native app and using the Expo iOS app to run it. But Expo is constantly refreshing my app, making it unusable / untestable. It refreshes every few seconds, sometimes multiple times a second, when I haven't changed…
Luke Knepper
  • 931
  • 8
  • 18
11
votes
2 answers

Error: Missing app.json. error in Expo XDE

I have developed an app using React-native, now i converted to expo using exp convert. I did all the changes to folder which is need (by following steps in expo-next-steps.txt) but when i run project on expo XDE, i am getting error like Error:…
Prasanna
  • 347
  • 1
  • 7
  • 22
10
votes
4 answers

Receiving error while reqeusting notification permission on expo app

I Have a simple code that asks for notifications permission that worked in the past, but suddently,It's giving me this error: "Error: Encountered an exception while calling native method: Exception occurred while executing exported method…
10
votes
3 answers

class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient') in react native

This was working fine earlier. Possible Unhandled Promise Rejection (id: 0): Error: Encountered an exception while calling native method: Exception occurred while executing exported method getLastKnownPositionAsync on module ExpoLocation: Found…
Gourav Mishra
  • 111
  • 1
  • 1
  • 4
10
votes
0 answers

Gets ENOTDIR error when yarn start for expo project

I activated yarn by following yarn official docs (https://yarnpkg.com/getting-started/install) I created an expo app with yarn by following react native official docs (https://reactnative.dev/docs/environment-setup) But when I run yarn start I get…
minseokk
  • 123
  • 3
10
votes
4 answers

Trying to import realm, but getting error: Missing Realm constructor. Did you run "pod install"? (I'm using windows)

I'm making a mobile application with react native. I want to use Realm (mongodb). So after running: npm install realm realm was correctly added in the "node_modules" and I tried to import realm with: import Realm from "realm"; If I do npm start…
JeffreyChong
  • 167
  • 1
  • 2
  • 11
10
votes
2 answers

Get device location periodically, even if app is killed

I can't seem to find any supporting documentation in the Expo docs or React Native docs that say whether or not this is possible, so I figured I'd ask here. I'm creating an app that needs to periodically fetch the device's location, whether the app…
user1695123
  • 103
  • 1
  • 14
10
votes
3 answers

How to change api level 29 to 30 in expo react native App

This Message was appear when i upload my app bundle to play store Your app currently targets API level 29 and must target at least API level 30 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target…
Muditha
  • 173
  • 1
  • 2
  • 12
10
votes
0 answers

Error: Unable to deactivate keep awake. However, it probably is deactivated already. App created by Expo cli

I have created an app by using the following command. npx create-react-native-app notification I did not edit the code. Once I launch the app in the Android emulator and If I press the back button and then press the 'Square' button on the Android…
user1927603
  • 541
  • 3
  • 15
10
votes
3 answers

Expo App environments for Dev, UAT and Production

I have a React Native app built in Expo that connects to a Rest API. There are three environments for the rest api - dev, uat and production as below (example). dev = https://dev.myapi.com/api uat = https://uat.myapi.com/api prod =…
cfbd
  • 980
  • 2
  • 9
  • 21