expo

Is there a method to clear Expo cache?

99封情书 提交于 2021-01-29 14:16:25
问题 I'm working on a task where I have to update a product images. Expo cache is posing a problem, when I update the product images and re-render the screen it does update my store state but doesn't show it. When I manually cleared expo cache it did work. I have also tried using the 'Cache-Control' header, but that didn't solve the problem. Is there a method I can call to clear expo cache ? 回答1: As far as I know the only way to clear Expo's cache is to add the -c flag to your expo start command.

navigation.getParam in not an object

╄→尐↘猪︶ㄣ 提交于 2021-01-29 14:10:57
问题 I am trying to get an image that is stored in an array in one screen and set it in as a source for an image in another screen. Essentially when a user touches a certain image that exact image will be carried to the next screen. The problem is that I am receiving an error saying undefined is not an object (evaluating 'navigation.getParam') the code is as follows: Screen 1 this.state = { messageItem: null, chat: [{ convo: [Chat1, Chat2, Pic1, Chat4, Chat5, Chat6], }] } openMessage = (bub) => {

Expo Camera preview component started displaying black screen out of the blue

别来无恙 提交于 2021-01-29 11:49:49
问题 The Camera preview component from the npm package 'expo-camera' doesn't show anything but a black screen. I've even created a brand new managed Expo project with nothing but this code: import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Camera } from 'expo-camera'; export default function App() { return ( <View style={styles.container}> <Camera /> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems:

Expo in-app-purchases: ReferenceError: Can't find variable: connectAsync

和自甴很熟 提交于 2021-01-29 09:22:31
问题 I'm trying to follow along with expo's in app purchases documentation.. I have the android developer account and set up my in-app-purchase on that account for the same app. I'm just trying to get started with the documentation and receive an error immediately. If you look at the documentation, I'm just trying to enter in what's in the first example. I call this function at the beginning of the render method of my app. import * as InAppPurchases from 'expo-in-app-purchases'; ... const

How to avoid loading Expo notifications bundle for web build?

ぃ、小莉子 提交于 2021-01-29 08:10:35
问题 I am using expo and react native web. I have integrated FCM for notifications for web but expo also loads a notifications bundle which I do not want. The issue is when the notification is received in the browser and message is clicked, the app gets the focus but crashes saying “TypeError: _emitter is undefined”. This is on this line in src/Notifications/Notifications.ts:40 _emitter.emit('notification', notification); So, it seems expo tries to use its Notifications module. Can I remove that

opening camera in Expo

故事扮演 提交于 2021-01-29 06:37:27
问题 I am trying to run this code (https://snack.expo.io/Hk1C_YqjW) on my android device using Expo XDE , but when it comes to this line: const arSession = await this._glView.startARSessionAsync(); shows this error and stops: [Unhandled Promise rejection: TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.ExponentGLViewManager.startARSessionAsync')] What is the problem? 回答1: Expo doesn't support ARCore on Android yet, only ARKit on iOS. See more information at https:/

The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v35.0.0

a 夏天 提交于 2021-01-29 06:17:57
问题 I decided to return to an Expo app I was developing last year and was using expo-sdk:v33.0.0 and it was working. I tried to use a solution of Squirrl from similar question, but still no luck. Tried removing node_modules and yarn_install. Here's my package.json: enter "dependencies": { "@react-native-community/masked-view": "^0.1.7", "@react-navigation/material-bottom-tabs": "^5.1.1", "@react-navigation/material-top-tabs": "^5.1.1", "@react-navigation/native": "^5.0.9", "@react-navigation

Axios request getting network error on Expo

淺唱寂寞╮ 提交于 2021-01-29 05:40:13
问题 I have an expo mobile application running on an Android emulator and I'm trying to make a request to a local Node.js API. The request is through HTTPS protocol so I created self-signed certificates to be able to try the application. Every time I try to make a request to the API Axios throws a Network error. Network Error Stack trace: http://192.168.1.35:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=ios&dev=true&hot=false&minify=false:168381:25 in createError http://192.168.1.35:19001

How can I get expo to connect to Android emulator with a non-localhost ip address?

允我心安 提交于 2021-01-28 10:30:53
问题 I have an Android Emulator running on Windows on port 5554. I am running expo inside WSL2. I have verified that I can access my Android Emulator on WIndows since if I type in: # 172.22.80.1 is the IP to Windows from WSL2 telnet 127.22.80.1 5554 it shows me the same "Android Console: Authentication required" prompt as if I did it in my Windows PowerShell. However, when I click on "Run on Android device/emulator" from the Metro Bundler web page, it throws me: Couldn't start project on Android:

How can I get expo to connect to Android emulator with a non-localhost ip address?

心已入冬 提交于 2021-01-28 10:27:34
问题 I have an Android Emulator running on Windows on port 5554. I am running expo inside WSL2. I have verified that I can access my Android Emulator on WIndows since if I type in: # 172.22.80.1 is the IP to Windows from WSL2 telnet 127.22.80.1 5554 it shows me the same "Android Console: Authentication required" prompt as if I did it in my Windows PowerShell. However, when I click on "Run on Android device/emulator" from the Metro Bundler web page, it throws me: Couldn't start project on Android: