Questions tagged [expo-web]

Expo is a set of tools and services for building, deploying, and quickly iterating on native iOS, Android, and web apps from the same codebase. Use this tag for questions that are specific to web apps.

See Getting to know Expo and Using Expo for web.

47 questions
2
votes
0 answers

JS chunks built with Expo web are too heavy

I am building the web version of my mobile app and I am running into a huge size issue. When I run expo build:web, the bundled js chunk files, 2.xxxx.chunk.js and app.xxxx.chunk.js, weight respectively 1.7mb and 1mb, which seems to be way too…
Ryan Pergent
  • 4,432
  • 3
  • 36
  • 78
2
votes
0 answers

Expo Web ( React Native for Web) not showing console.log

I am quite new to Expo and am trying to turn my React Native App into an additional web app. I’m pretty excited about Expo Web / React Native Web, but unfortunately I have the problem that I don’t see any outputs in the Expo Dev Tool (where the…
Fabio
  • 160
  • 2
  • 12
2
votes
1 answer

CodeBuild + ReactNative + Expo Web - This build image requires selecting at least one runtime version

Trying to use CodeBuild for the first time, pulling data from CodeCommit. But I'm having issues with my buildspec. This is the code I have on it so far: version: 0.2 phases: INSTALL: runtime-versions: nodejs: 10 …
1
vote
1 answer

Map for React Native Web With Expo and Metro

I am building a hybrid app with React Native Expo. My struggle is that my app needs a map and needs to be functional on mobile and web. To have a map with React Native I found several libraries, but there is always a problem : react-native-maps :…
1
vote
0 answers

WebBrowser.openAuthSessionAsync has a token in result?

Does anyone has any idea on how to get the token from WebBrowser.openAuthSessionAsync(url, redirectUrl) result? or how to get the parameter data of it. Thank you so much in advance.
mingmingming
  • 345
  • 2
  • 4
  • 12
1
vote
0 answers

WebBrowser.openAuthSessionAsync(url, callbackUrl) function can't go back to original page and cannot get the data when successfully loggedin

I am using expo-web-browser to open my login page in a web using open openAuthSessionAsync but I cannot get the data or I cannot return to my app after it successfully logged in with this code. import * as Linking from 'expo-linking'; import * as…
mingmingming
  • 345
  • 2
  • 4
  • 12
1
vote
2 answers

I am using the React-Native Share.But isn't supported in Web.It gives the following error. Error: Share is not supported in this browser

i am I am using the React-Native Share. But isn't supported in Web. It gives the following error. Error: Share is not supported in this browser How can i use it with browser support? const onShare = async () => { try { //…
1
vote
0 answers

Expo react-native EventEmitter.removeListener('url',.): Method has been deprecated. Please instead use remove() on the subscription returned

I have been searching for a while now and i haven't found any solution. I'm developing a react-native application with Expo and i'm using firebase for authentification with GoogleSignIn and WebBrowser. I have this warning on Android everytime I sign…
wengren11
  • 43
  • 2
  • 7
1
vote
1 answer

Is there a way to access test id's using expo web?

I'm trying to run end to end tests on an Expo Web project with Playwright. I was hoping that when I added a testId prop to a React Native view it would be converted to a data-testid so I could select the element for my tests. However, it doesn't do…
Gwater17
  • 2,018
  • 2
  • 19
  • 38
1
vote
1 answer

Can't resolve 'react-native-web/dist/exports/ColorPropType'

I had one application and I wanted try expo start:web functionality and it did have error like AsyncStorage after solving that the i have the error Can't resolve…
Rahul Shakya
  • 1,269
  • 15
  • 15
1
vote
3 answers

Importing expo fonts and assets in expo web and nextjs

I am trying to use expo and nextjs for my web app, and I have tried implementing the the steps listed in the doc to enable me use fonts and images, however I keep getting this error error - ./assets/fonts/Fontisto.ttf 1:0 …
vincent O
  • 518
  • 8
  • 33
1
vote
0 answers

React native Expo - Web | Unexpected token

I've updated my react, expo and expo-cli version recently and am trying to get expo web running on this updated project, but whenever I run expo start --web I get the following error: web Failed to compile. /App/App.js SyntaxError: /App/App.js:…
Salman
  • 1,109
  • 3
  • 25
  • 55
1
vote
1 answer

How do I approach multiplatform app with React

I'm just learning development and recently, I finished a MERN stack course. Now I'm wanting to build my second Commercial App for the company where I am working. At first, I was only considering responsive web platform but now, I can't deny the…
1
vote
1 answer

How to Render HTML string in Web Browser with Expo (React-Native)?

I am using react-native-webview-quilljs to render formatted HTML text. It works fine on Android and iOS but it isn't supported on the Web (i.e. react-native-web/expo-web). So I managed to strip the HTML tags when rendering the formatted string on…
Yahya Ibrahim
  • 251
  • 4
  • 15
0
votes
0 answers

Can't access GlobalStateContext in React Expo Router based Project

In my App i want the username and the role becoming back from the api global avaiable in other components, so i made the createContext Hook. But cant access the data in the other components. I have this Files index.js import React from…
PropanBen
  • 1
  • 1