expo

Having multiple connections with expo in the same time

无人久伴 提交于 2021-02-11 13:03:06
问题 I am trying to make an application with multiple users using SSE Emitter on React Native and Expo, so, for testing I need at least 4 expo connections in the same time. In this way, I used expo start on four terminal tabs and ran application in Web Browser. On the first three chrome tabs all works great, the request are fetching and sending valid data, but on the first one the requests are just pending. I thought it could be from CORS, cache control header, so I setted Cache-Control: 'no-cache

What is the proper way to bundle a textfile with the app

时间秒杀一切 提交于 2021-02-11 12:49:01
问题 Using expo, I need to provide a text-file with data (a word-dictionary) to the app. How do I provide that and how do I read it into memory? 回答1: I translated my textfile to a json-formatted content. This can very easy be used. The json is parsed automatically. import data from './assets/woerter.json'; 来源: https://stackoverflow.com/questions/63104357/what-is-the-proper-way-to-bundle-a-textfile-with-the-app

Expo sdk 29/30: session cookie from login

柔情痞子 提交于 2021-02-11 12:33:28
问题 In all prev versions of Expo, I used RN fetch method to POST username/password to a Flask login endpoint. This endpoint saved user info to the session and set session cookie. It was always transparent and I never had to pass anything extra. This worked as of Expo v28. But when I upgraded to Expo 30, the server no longer sees the client as logged in. Do I need to change how I use fetch? Do I need to pass some extra parameters? 回答1: First, before login, we need to clear the old cookies using:

Expo iOS Build Not Working--“Could Not Receive Latest API Key from App Store Connect”

China☆狼群 提交于 2021-02-11 07:10:50
问题 I am currently in the process of trying to build my first app using Expo-cli. I am on Windows 10. I have an Apple Developer account and am just trying to build for iOS at the moment. However, whenever I run "expo build:ios" I get the following errors: Connection reset by peer - SSL_connect >>Error while gathering & validating credentials >>Error: Reason:Unknown reason, raw:"Could not receive latest API key from App Store Connect, this might be a server issue." >>Reason:Unknown reason, raw:

Expo iOS Build Not Working--“Could Not Receive Latest API Key from App Store Connect”

北战南征 提交于 2021-02-11 07:09:31
问题 I am currently in the process of trying to build my first app using Expo-cli. I am on Windows 10. I have an Apple Developer account and am just trying to build for iOS at the moment. However, whenever I run "expo build:ios" I get the following errors: Connection reset by peer - SSL_connect >>Error while gathering & validating credentials >>Error: Reason:Unknown reason, raw:"Could not receive latest API key from App Store Connect, this might be a server issue." >>Reason:Unknown reason, raw:

Ignore SSL certificates error in axios/fetch call in react-native expo android

有些话、适合烂在心里 提交于 2021-02-10 20:47:11
问题 I just started using react-native and am trying to build an android app with it.. I used create-react-native-app and used the expo template. But I'm not able to fetch data from my server kepp getting "Network Error". My server doesn't have a valid certificate currently. Is there any way to ignore ssl certificate errors in my fetch calls? 回答1: Yes, only use the http instead https , and set the following line in your manifest <application ... android:usesCleartextTraffic="true" ...> 来源: https:/

Ignore SSL certificates error in axios/fetch call in react-native expo android

筅森魡賤 提交于 2021-02-10 20:45:55
问题 I just started using react-native and am trying to build an android app with it.. I used create-react-native-app and used the expo template. But I'm not able to fetch data from my server kepp getting "Network Error". My server doesn't have a valid certificate currently. Is there any way to ignore ssl certificate errors in my fetch calls? 回答1: Yes, only use the http instead https , and set the following line in your manifest <application ... android:usesCleartextTraffic="true" ...> 来源: https:/

Unable to resolve “../../App” from “node_modules/expo/AppEntry.js”

倖福魔咒の 提交于 2021-02-10 14:35:28
问题 I am making a vue-native app with expo. when upgrading to expo version 33 I get the following error "Unable to resolve "../../App" from "node_modules/expo/AppEntry.js". The need to upgrade to version 33 is because I need the expo filesystem module. I have already made a new project from scratch and the same error still occurs. package.json { "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo

Expo + React Native - PDF Creation & Download

做~自己de王妃 提交于 2021-02-10 14:04:28
问题 Is there a reliable way to create a file (specifically via Print.printToFileAsync API), and since it creates the new file in the user's cacheDirectory, copy it across to their documentDirectory - that works in both Android and iOS? I've come across others trying to do the same thing here, but to no avail. One solution I've seen is to use the MediaLibrary API to download the file to the device's CameraRoll - but this is hacky and doesn't work on iPhone since the file I'm trying to copy

How to set dynamic initialRouteName in createSwitchNavigator?

荒凉一梦 提交于 2021-02-10 05:26:39
问题 I want to setup auth flow but i'm not getting the data from SecureStore Navigator.js const AppSwitchNavigator = createSwitchNavigator( { SignedOut, SignedIn }, { initialRouteName: AsyncStorage.getItem('isSignedIn') == 'true' ? 'SignedIn' : 'SignedOut' } ) export default createAppContainer(AppSwitchNavigator) Login.js verifyOtp = async code => { const { phone } = this.state var response = await Axios.post( `https://api.msg91.com/api/v5/otp/verify?mobile=91${phone}&otp=${code}&authkey