Questions tagged [expo]

1

votes
1

answer
438

Views

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 over again, eventually it will work, but that's a l...
zaytrix
1

votes
2

answer
175

Views

React Native: Calling API running on localhost

I have a .NET api that I'm running locally on my machine. I'm trying to access this data in a development environment and running into issues. When I have my React Native app running through expo, localhost is referring to the devices localhost and not the one running on my desktop. I'm researched t...
23k
0

votes
0

answer
5

Views

is there a 'fixed header' or 'sticky header' for react native?

Is there a way to have fixed and permeant top-titlebar(I think it's called as Header?) for react native? Almost like a status bar, it's always there. But it needs to be at the top (even before the 'header' from the react-navigation) My plan was to put a global-search input there, so anywhere in the...
Andre Song
2

votes
0

answer
28

Views

Notification after timer is finished if the device is locked - React Native EXPO?

I have a timer written on React Native (EXPO) similar to the native Android timer. I use something like that: setTimeout(() => { Vibration.vibrate(PATTERN, true); // this works only when app is active }, 60 * 1000); // time in range 1 - 120 min. How to fire audio signal or/and vibration when the ti...
Oleg Spiridonov
0

votes
0

answer
3

Views

Retrieve image from Firbase storage into expo app

I'm very biginner and I'm struglinng in finding a code that could help me to retrive images from my firbase storage into my Expo app , any help?
n33
1

votes
0

answer
12

Views

iOS side-loaded expo app horizontally flipped

I'm using expo in my react native project. Everything is fine when loaded to either Android or iOS emulators. However when I side-load it to my actual iOS phone device, everything is flipped. The header hamburger menu goes to the right even though the drawer still animated from the left. Text excl...
Adrian Bartholomew
0

votes
0

answer
5

Views

Accessing NSUserDefaults from a React Native application on iOS

I have a React Native app, that is using ExpoKit. I can eject if needed. I want to access the NSUserDefaults object to read a value that has been pushed by AirWatch - a Mobile Device Management system. Basically the app is run in a Managed Environment, and the settings are passed through NSUserDefau...
Mickaël
1

votes
1

answer
1.1k

Views

How to use the Drawer and Tab navigation together in react-native with ex-navigation

I'm building an app in react-native and implement navigation with ex-navigation. I want to use the TabNav to offer quick access to the most used features and to use the DrawerNav for features that should be available but are not used that often. I searched and tried myself but I cannot have a drawer...
Primeminister
1

votes
1

answer
3.5k

Views

.map() , Undefined is not a function in React Native

So I make a call to a API and use it to setState. My state: state = { candlesticks: [] }; My API call and promise function: componentDidMount() { axios .get( 'apiurl' ) .then(data => { let mappedData = data.map((record) => {record.date *= 1000}); //getting the error here with the map()function this....
furball514
1

votes
1

answer
215

Views

Expo valid hosts

I have built a react-native app using the new create-react-native which uses expo. I have opened port 19000 yet when I try to connect to exp://mydomain.com:19000 in the app I get a network response timed out. When I connect to mydomain.com:19000 in chrome I get {'error':'Error: ValidationError: \'ho...
Alessi 42
1

votes
1

answer
763

Views

React Native / Expo: Push notifications for standalone Apps

I can't find the answer to this question anywhere in the documentation. Can I send push notifications to standalone (not detached) apps using the exponentPushToken[xxxxx] token? Maybe using expo's push service URL (https://exp.host/--/api/v2/push/send)? or, for standalone apps, the only way to do it...
Agu Dondo
1

votes
1

answer
363

Views

React Native Enumerable key on prototype chain error

Im trying to upload an base64 image to the Firebase Storage with and getting this error: One of the sources for assign has an enumerable key on the prototype chain. Are you trying to assign a prototype property? We don't allow it, as this is an edge case that we do not support. Running on [email protected]
Laszlo Schürg
1

votes
1

answer
861

Views

React Native/Expo yet another SyntaxError: Unexpected token import while testing

I'm developing a mobile app using React-Native and Expo. Everything is doing great and the app is running as expected. But my tests are not running when importing some @expo libraries. The error is the classical one: SyntaxError: Unexpected token import Giving the full context of the erro: ({'Object...
danielfranca
1

votes
2

answer
910

Views

React Native TextInput ref causes weird crash /lockup

i'm trying to do some TextInput focus stuff in React Native and need to refer to the TextInput's ref property... but getting some weird behaviours (Running Expo XDE) where as soon as i try to console.log the input ref, the whole thing slows down as if there's some weird memory loop. Code below. expo...
lucastobrazil
1

votes
1

answer
802

Views

react-navigation: Navigate to same RouteName but with different params

I want to navigate to to the same screen but with different params. so imagine navigate to MyRouteName on this screen click a button which should navigate me to MyRouteName but with different params. currently I've tried this.props.navigation.navigate('MyRouteName', {param1: 'new val'}) and const se...
w--
1

votes
1

answer
52

Views

Bundle vector-icon with the app for offline access

I used 2 icons with Ionicons from @expo/vector-icons for a React Native app. Is there a way to bundle the 2 icons to the app such that the user would not require internet connection to get the icons rendered?
Avery235
-2

votes
0

answer
18

Views

Honeywell N3680 - React native development [on hold]

We're currently trying to develop a React Native app with Expo that will scan badges with QR codes using the Honeywell N3680 from the ELO 2D Barcode Scanner, though cannot find any SDK's or documentation about this particular setup. We were able to locate the Mobility SDK for Android and Mobility SD...
Jacob
1

votes
1

answer
753

Views

React Native : undefined is not an object

I am currently learning React Native. I just a built a very simple app to test out the Button component. When I click on the button component the console log is printed as expected. But after printing out the console log it pops out the following error. **undefined is not an object (evaluating '_thi...
Aaron Wilfred
1

votes
1

answer
1.2k

Views

React-Native Expo app async downloads

So I am using create-react-native-app to build a project. As you probably know, this uses Expo as a framework when you are developing app. I am using Expo's FileSystem.downloadAsync() to download files I need. I need multiple files to download, so I run this command inside .map(), something like thi...
Wolfdog
1

votes
1

answer
412

Views

command “exp build:android”, error “Can't find package.json”

I run command exp build:android. After some minutes it displays: [exp] Building... [exp] Build started, it may take a few minutes to complete. [exp] Build ID: (some id here) [exp] Run `exp build:status` to monitor it. When I run command 'exp build:status', I see this error: |[exp] Error: Can't find...
Denis
1

votes
2

answer
940

Views

React Native OSX CRNA Compilation of µWebSockets has failed C++11 compiler

Got this issue after ejecting from Expo (with ExpoKit). Had a working environment before ejecting. npm run ios will run with this issue repeating over and over: Origin: Worker (PID 6336) 12:18:06: [Error] Error: getaddrinfo ENOTFOUND lcalhost 12:18:06: at errnoException (dns.js:28:10) 12:18:0...
Thomas Hagström
1

votes
1

answer
392

Views

Issue after react native expo eject: No visible @interface for 'RCTAsyncLocalStorage' declares the selector 'initWithStorageDirectory:'

I just ejected from expo and everything went well but I'm now getting the following error when trying to run my ios app in Xcode : No visible @interface for 'RCTAsyncLocalStorage' declares the selector 'initWithStorageDirectory:' Here is part of my package.json 'dependencies': { 'axios': '^0.17.1',...
Hugo
1

votes
1

answer
927

Views

Compress expo apk file size

I have used expo to create a simple barcode scanner .When I generated the apk for the same .The apk size is extremely large compared to android studio.
Ravi basil
1

votes
1

answer
256

Views

Is it possible to make user profile changes with AWS Amplify?

AWS Amplify can now be used with react native and expo SDK25 (Create React Native App) without ejecting first. This is great for those looking to stay within the AWS ecosystem and use Cognito User Pools. But I couldn't find a way to use AWS Amplify to let the user make updates to their data (e.g. f...
Innovate
1

votes
1

answer
658

Views

How can i incorporate Expo components in a non-expo React Native app?

I'd like to use Expo's barcode scanner component in a non-expo app that i've already mostly built: https://docs.expo.io/versions/latest/sdk/bar-code-scanner.html Is it reasonable to do this? Or is it more reasonable to create a new Expo app then migrate my existing codebase into the new expo app? My...
Chris
1

votes
1

answer
758

Views

React-native refs and Expo Camera

I'm trying to take a picture using Expo's Camera object. Using Expo 25.0.0 and React-native 0.52.0 A simple sample code of the problem I'm experiencing is below: import React from 'react'; import { Camera } from 'expo'; import { Text, View, TouchableOpacity } from 'react-native'; export default clas...
gorio
2

votes
0

answer
14

Views

React Native - Animated Modal right above bottom tabs

I have been following a tutorial to create a React Context Provider through which I can have a general panel across all tabs and panels of my React Native app. Complete Expo Snack of the code here. This 'general panel'(VideoModal.js) has a PanGestureHandler which on the event of scroll down (on the...
John Doe
1

votes
1

answer
109

Views

Unable to resolve “../lib/util” from “node_modules\react-native-svg\elements\Text.js”

I did some mess with the dependencies and installed the react-native-svg again even if expo already had. So i got the error while starting my application: Unable to resolve '../lib/util' from 'node_modules\react-native- svg\elements\Text.js' No matter what my source code is. I tried so far to remov...
Claudio Ferraro
0

votes
2

answer
11

Views

React Native: Text strings must be rendered within a <Text> component

I am trying to create a Profile page where the user can upload an image as the react-native-elements Avatar and update his profile information on a native-base form element. I am also using the React Native default ImageEditor for image cropping and ImagePicker from Expo to select images. But when I...
user3001658
0

votes
0

answer
4

Views

Displaying 3D model in React Native Expo

In current project i need t display 3D model (.obj and its texture .png) in react native EXPO. I need to load model in View just to diplay it there for beginning. I tried with this but no luck. Does anyone know how to do this.
ahmetovicajdin
1

votes
0

answer
4

Views

Expo SDK 31 react-navigation BottomTabNavigator with react-native-svg Icons Not Working

I use react-native-svg to create icons throughout my app including for tab navigators. Everything was working fine until I updated Expo SDK 30 to SDK 31 (same issue persists into SDK 32). It seems that the last tab's icon is overlapping the others, preventing the user from navigating to any tab but...
jack kruso
1

votes
1

answer
956

Views

Using Jest to mock named imports

I have a 'notifications.js' module that looks a bit like this: import { Notifications, Permissions } from 'expo' export function setLocalNotification(storage = AsyncStorage) { return storage .getItem(NOTIFICATION_KEY) .then(JSON.parse) .then(data => { if (data === null) { return Permissions.askAsync...
BarthesSimpson
1

votes
1

answer
103

Views

Can I run my Expo app on multiple iOS Simulators at once?

Is it possible to run an Expo app on multiple versions of iOS Simulator at once? It would be really nice to have two or three iPhones refreshing automatically, so that it's easy to tests the layout with different screen sizes. (I know I can do this with multiple hardware devices, and I know that I c...
Jan Aagaard
1

votes
2

answer
42

Views

How to solve Invarient violation:Text strings must be rendered within a <Text> component in React Native?

In my React- Native project I have installed the following version of react-navigation: npm install [email protected]^1.0.0-beta.11 And then run the command: npm install After all these installation I have created a class named WelcomeScreen.js and here is the code given below for that- WelcomeScree...
S. M. Asif
0

votes
0

answer
6

Views

React Native: How do you find PRODUCT_BUNDLE_IDENTIFIER using expo?

I am trying to implement Auth0 on my react native app and right off the bat you need to identify your PRODUCT_BUNDLE_IDENTIFIER for the callback the server uses through this template URL. {PRODUCT_BUNDLE_IDENTIFIER}://{app_name}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback But since I'm using an Expo pr...
tdmiller
0

votes
0

answer
5

Views

Why I need to restart Expo every time i got some errors in code in order to see the code changes

I run expo on my local machine and I have an android phone with Expo App. I create a tunnel correctly and scan the QR Code. After that I can see the app on my phone but if accidentally there are some errors in code I get a Red screen: and that is normal. But if I go in my code and fix the code ..I s...
Claudio Ferraro
7

votes
3

answer
2k

Views

Facing error (0 , (_wordwrap || _load_wordwrap(…)).default)(…)(…).trimStart is not a function on expo init

I am trying to create react native application with Expo. As per react native official documentation, I have installed Node 8+ (v8.12.0) & expo-cli on my windows system and then run command expo init AwesomeProject. But its giving error as (0 , (_wordwrap || _load_wordwrap(...)).default)(...)(...)....
Shubham Takode
1

votes
3

answer
33

Views

how to get the latitude and logtitude from the result of Location.getCurrentPositionAsync() in react-native

this is my code for get device's current location. import React, { Component } from 'react'; import { Platform, Text, View, StyleSheet, FlatList } from 'react-native'; import { Constants, Location, Permissions, MapView } from 'expo'; export default class Home extends Component { state = { location:...
Ayesh
1

votes
2

answer
574

Views

expo version 2.4.2 version app not working / running in iOS

followed links https://github.com/expo/exp#viewing-a-project-on-your-phone https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md Installed latest expo version in iPhone 2.4.2 version app. They dropped QR Code scanner. facing issue in iPhone not able to run the react nati...
SUNiL iOS
1

votes
1

answer
647

Views

Expo XDE not working behind proxy

Expo XDE has no provision to configure proxy details and hence it does not let you login because proxy does not allow the login request to be processed.
Manoj Goel

View additional questions