expo

issue installing react native expo with npm install -g expo-cli

我怕爱的太早我们不能终老 提交于 2019-12-06 05:17:16
问题 I was able to install and run react-native but when I tried to install react native expo I got some errors this is my Expo installation npm install -g expo-cli Microsoft Windows [Version 10.0.16299.125] (c) 2017 Microsoft Corporation. All rights reserved. C:\Users\admin>npm uninstall -g expo-cli up to date in 0.043s C:\Users\admin>npm install -g expo-cli npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please

Unable to resolve “fbjs/lib/areEqual” from “node_modules\\react-native-gesture-handler\\createHandler.js”

混江龙づ霸主 提交于 2019-12-06 03:29:14
I'm building a react-native application with expo, however, I have an error, therefore I'm unable to continue building the application. I even looked for the file in node_modules that is mentioned in the error message. I'm using the react-native-gesture-handler for my screen navigation. If I uninstalled the react-native-gesture-handler and I removed the navigation code would this solve my error? How do I resolve this? App.js import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import Plan from './screens/Plan'; import Home from './screens/Home'; const

React Native app does not start in Expo app

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 02:54:04
I have HTC M8s with Expo installed on which I want to test my apps written in React Native. I run my app in a console, scan QR code and try to connect to my app from my smartphone - unfortunately, I see an error saying that it could not load exp://myaddress:port. I am using Windows 10 and both my PC and my smartphone are connected to the same WiFi network. Here's the result of ipconfig command: Ethernet adapter Ethernet: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : myhostname.net Wireless LAN adapter Wi-Fi: Connection-specific DNS Suffix . :

In Expo, Requiring module “fetch”, threw an exception: ReferenceError: Can't find variable: self

大城市里の小女人 提交于 2019-12-06 02:08:39
I have searched across different possible answers, but didn't find any appropriate addressing this specific error. I have mentioned the exact error string in the question title. This error started appearing when I installed fetch npm module in my ReactNative app. This error appears just at the time app is launched/loaded on my phone during development. Before installing fetch , my app was loading correctly on the phone. In windows CLI there is no such error that assist me to resolve the issue, it just shows the build is successful. I am using Expo for my ReactNative app development. Please

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

牧云@^-^@ 提交于 2019-12-06 01:51:45
问题 I'm getting this error when launching Expo on my iOS simulator. The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v23.0.0. The author should update their experience to a newer Expo SDK version. I've seen this answer Expo not loading (React-Native) -- null Expo SDK version but the solution does not work for me. I already have the sdkVersion in my app.json: "expo": { "sdkVersion": "22.0.0" } I tried yarn upgrade --latest but still no luck. Any

react-navigation dynamic header doesn't work?

让人想犯罪 __ 提交于 2019-12-05 21:44:48
I followed exactly the tutorial https://reactnavigation.org/docs/intro/ But the header does not show up. Here is the code and the result import Expo from 'expo'; import React from 'react'; import { StyleSheet, Text, View, Button } from 'react-native'; import {StackNavigator} from 'react-navigation'; class HomeScreen extends React.Component { static navigationOptions = { title: 'Welcome', } render() { const {navigate} = this.props.navigation; return ( <View style={styles.container}> <Text>Open up main.js to start working on your app!</Text> <Button onPress={()=>navigate('Chat',{user:'Lucy'})}

React Native - Expo Audio stop all sounds

人走茶凉 提交于 2019-12-05 15:26:08
I am using Expo Audio to play some short sounds from a list. async playAudio(file) { try { await Audio.setIsEnabledAsync(true); const sound = new Audio.Sound(); await sound.loadAsync(file); await sound.playAsync(); } catch(error) { console.error(error); } } Which I'm calling from a list rendered with list.map() renderTheList = (item, i) => { return ( <View key={i}> <TouchableOpacity onPress={ () => { this.onAudioSelected(item.audio) }}> </TouchableOpacity> </View> ) } onAudioSelected(audio) { // Audio.clearSounds() <-- something like this playAudio(audio) ... } The sounds play fine, but when I

How to play Youtube videos using Expo

…衆ロ難τιáo~ 提交于 2019-12-05 13:01:31
I am trying to use the react-native-youtube component in my expo project. However, I couldn't get it to work. All I have so far is a black screen with red borders. I tried following the video instructions on online however, expo doesn't have an iOS or Android folder, which means I can't open it in XCode and fiddle with it. How can I play youtube videos using expo? As you might have noticed from my question I'm new to react-native using expo. At the moment, YouTube is not supported by Expo. You can either deatach the project and install the react-native-youtube library or load your videos from

Share extension react native - expo

寵の児 提交于 2019-12-05 12:43:30
I have created a react-native app using expo . Now I am looking for share-extension to the app to import CSV data from email attachment to my app. I have tried npm package but that does not work for me(I was not able to build my project with that npm package in Xcode) I think react-native or expo does not have any share API In this picture, you can see how he got the option to import data into the app. I understand that without share extension API, I think react-native and Expo both are useless because you can create the app but you don't expand it. Looking for the solution or any other

How do I get a React Native app to run properly on an iPad?

本小妞迷上赌 提交于 2019-12-05 11:39:05
My React Native app was just rejected by Apple because We noticed that your app did not run at iPhone resolution when reviewed on iPad running iOS 10.3.3. To resolve this issue, please revise your app to ensure it runs and displays properly at iPhone resolution on iPad. Even if your app was developed specifically for iPhone, users should still be able to use your app on iPad. They provided the following screenshot: Indeed, it does all look pretty squished, but I'm not sure what I'm doing wrong. This app was built using the Expo SDK. Varun Nath Check if you have the following in your app.json .