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
1 answer

WebView Alternative for React Native Web Expo

I want to display an external website within my app. Exactly as WebView for Android/iOS. Expo's React Native WebView does not support the web platform. https://docs.expo.io/versions/latest/sdk/webview/ Is there an Expo-friendly alternative for…
11
votes
3 answers

Unhandled promise rejection: TypeError: Network request failed expo node backend

I have a node backend that my expo app is querying. The node-express-mongo backend works just perfect which I can verify using GET Request from Postman but I get unhandled promise rejection Network Failed error in my app Complete error: [Unhandled…
abhimanyuaryan
  • 3,882
  • 5
  • 41
  • 83
11
votes
5 answers

How to forbid Tablet usage in expo / react-native?

I have developed an app with Expo and react-native for Smartphones - now I am trying to upload the ".aab" file to the Google Play Store - however it seems like it will be available for tablet and wearables, too. I could not really find out how to…
Kev1n91
  • 3,553
  • 8
  • 46
  • 96
11
votes
4 answers

View or open PDF files stored locally Expo React Native

Is there a solution to view or open PDF Files using Expo (without Expo eject)? It's not necessary to open file inside App, it's can be a local filemanager. What i tried: Linking does not open locally files, only online sources React Native PDF…
user12532331
11
votes
4 answers

Null is not an object (evaluating 'RNFetchBlob.DocumentDir') using Expo

I'm using Expo and try to download files using react-native-fetch-blob import RNFetchBlob from 'rn-fetch-blob'; RNFetchBlob.fetch('GET', 'http://www.example.com/images/img1.png') .then((res) => { let status = res.info().status; }) …
user12532331
11
votes
1 answer

How to implement Video and/or Audio calling in React Native Expo application

I am building a react native application using Expo and i need to add audio calling and video calling functionalities, however it seems that i cant use react-native-webrtc (Link here) without ejecting Expo. My question is there anyway i can add…
Abdeen
  • 922
  • 9
  • 30
11
votes
1 answer

environment variables in babel.config.js

We need to modify certain configuration/variables in our React Native app (built using Expo) depending on environment (local/dev/staging/production). I've looked at a number of libraries meant for this purpose but all seem to have a flaw that breaks…
Alexander Tsepkov
  • 3,946
  • 3
  • 35
  • 59
11
votes
7 answers

Change navigation bar on android with RN with expo?

I started using React Native with Expo and I encountered my first problem. I want to change the color of the navigation bar on Android. Unfortunately, I can't figure out how to do that. I tried to use…
Wojciech Borowski
  • 133
  • 1
  • 1
  • 7
11
votes
1 answer

How can I select multiple files with DocumentPicker in Expo?

Hello guys I guess some of you already got in this issue. I am wonder if there is a way to select multiple files using Expo Document Picker or I just need to select them one by one which obviously is not a good way for the user. For now all I have…
Markus Hayner
  • 2,869
  • 2
  • 28
  • 60
11
votes
1 answer

How to use Google Play pre-launch report with expo / react-native

Google has a built in app crawler for the app store called the pre-launch report. It will crawl your app on a bunch of different devices and give you some basic feedback assuming you: provide credentials (easy) provide resource IDs for username /…
MattPark
  • 377
  • 1
  • 2
  • 13
11
votes
8 answers

Value for title can not be cast from ReadablenativeMap to string

Consider: InsertDataToServer = () => { const { pinValue1 } = this.state; const { pinValue2 } = this.state; const { pinValue3 } = this.state; const { pinValue4 } = this.state; var String_3 = pinValue1.concat(" ", pinValue2); var String_4…
Atul Tiwari
  • 544
  • 1
  • 7
  • 17
11
votes
5 answers

How to snap pictures using expo react native camera?

I have just started using React Native with Expo so I am kind of confused. So, I have made a camera component which I imported in the main screen. Everything looks good. But I can't take pictures. I cannot click the snap icon and save the image. Is…
Arjun Kashyap
  • 623
  • 2
  • 10
  • 24
11
votes
2 answers

React Native with Expo: how to use a .env.local config file?

I have a react-native app running with expo (expo 27.1.1 and react-native 0.55.4). I'd like to use a .env.local file, the only thing I found is using babel-plugin-inline-dotenv, but it loads the content of .env file instead of .env.local file (and I…
Simon
  • 6,025
  • 7
  • 46
  • 98
11
votes
2 answers

Expo Push Notifications not popping in Android phones (Floating Notifications)

EDIT: I discovered these are known as FLOATING NOTIFICATIONS. Anyone knows how to enable them by default from the app (through a permission etc) on an Android device? I am currently testing push notifications on an Android device and noticed that…
James
  • 3,597
  • 11
  • 41
  • 76
11
votes
3 answers

Use single expo codebase for multiple apps

I got an application what we white-label for others. This means we share the same functionality through the apps but there are some specific design elements (mostly colors and pictures) in each app. I'm looking for the easiest and best way to…
wntsmk
  • 290
  • 1
  • 10