expo

“Error: spawn cmd ENOENT” In Expo Init Project

陌路散爱 提交于 2019-12-04 13:40:00
I am starting a new React-Native Project using expo init firstexpo But I get this error at Command Prompt Error: spawn cmd ENOENT PS C:\Users\Alex\testing\firstexpo> expo start [16:21:09] Starting project at C:\Users\Alex\testing\firstexpo [16:21:11] Expo DevTools is running at http://localhost:19002 [16:21:11] Opening DevTools in the browser... (press shift-d to disable) Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19) PS C:\Users\Alex

Keyboard aware scroll view Android issue

和自甴很熟 提交于 2019-12-04 11:21:13
I've created a react native project using Expo XDE (xde-2.19.3) with a few TextInputs on the screen. Im using KeyboardAwareScrollView to scroll the inputs from under the keyboard into view and works fine on iOS but does not work on Android. Hope that makes sense. Looked at the KeyboardAwareScrollView docs and saw that I need to configure AndroidManifest.xml but it seems that Expo has already sorted this out: https://github.com/expo/expo/blob/master/template-files/android/AndroidManifest.xml However I'm still not able to get this working on Android... What could I be missing? render() { return

Created an app with create-react-native-app, how to publish it to the Google Play Store?

断了今生、忘了曾经 提交于 2019-12-04 07:54:24
问题 I have created an app with create-react-native-app, but I am not sure how to publish it to google play store. Error 1 After reading this doc. ; exp build:android [exp] Making sure project is set up correctly... /[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/. \[exp] Warning: 'react-native' peer depencency missing. Run `npm ls` in /var/www/html/test/testme/osmosis-seek-android to see full warning. [exp] [exp] If there is an issue running your project, please

Could not load exp:// Something went wrong

不打扰是莪最后的温柔 提交于 2019-12-04 01:38:28
I have created a project using Expo XDE. I checked this Can't load expo app: Something went wrong but I have already enabled "Draw over other apps". It works https://expo.io/@ajaysaini/first-proj when I scan this QR code but it doesn't when I run it on android device from XDE. main.js import Expo from 'expo'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Updating!</Text> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff',

Share photo to Instagram from React-Native app built with Expo SDK

谁说胖子不能爱 提交于 2019-12-03 17:11:11
I want my react-native app to share a photo with Instagram. I know it's possible when writing in native code to open up Instagram's filter screen with a specified photo. A restriction is that I'm using the Expo SDK, which doesn't allow 'npm link' for native dependencies. When this function is called, it will open Instagram: _handlePress = () => { Linking.openURL('instagram://app'); } This is the Button: <Button onPress={this._handlePress} title='Open Instagram' /> The image is stored in the state: state = { image: null, uploading: false } I can display the image in an Image tag just fine:

How do I run an app on a real iOS device using Expo?

浪尽此生 提交于 2019-12-03 16:42:10
问题 I am using Expo to run my application. I am able to see two options in Expo XDE: open on iOS simulator open on Android I want to run my app by directly connecting to my device. Is it possible with Expo? 回答1: Yes, it is possible, and quite easy to get it running. Step 1: Open Expo XDE, and click on the gray cog to change host mode to LAN. Make sure you enabled Development Mode. You'll see an URL right in front of you. Wait until packager to start running. Step 2: Open Expo App in your mobile

How do I run an app on a real iOS device using Expo?

断了今生、忘了曾经 提交于 2019-12-03 05:50:03
I am using Expo to run my application. I am able to see two options in Expo XDE: open on iOS simulator open on Android I want to run my app by directly connecting to my device. Is it possible with Expo? Yes, it is possible, and quite easy to get it running. Step 1: Open Expo XDE, and click on the gray cog to change host mode to LAN. Make sure you enabled Development Mode. You'll see an URL right in front of you. Wait until packager to start running. Step 2: Open Expo App in your mobile device, and click on the second tab ' Explore ' and enter the URL that starts with exp://192.168... This is a

Expo run on android emulator using windows 10

若如初见. 提交于 2019-12-03 00:29:48
Can I run android emulator without an android phone? I have installed android studio and I've already installed android virtual device. However, when I try to run it, it gives an error like this : Couldn't start project on Android: Error running adb: No Android device found. Please connect a device and follow the instructions here to enable USB debugging: https://developer.android.com/studio/run/device.html#developer-device-options . If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory. I just want to see the

react-native run-ios Could not find iPhone X simulator | XRPackageModel 9.0.omo

你。 提交于 2019-12-02 20:22:49
问题 I first started my project with Expo and ejected it. Now, I'm trying to run the command react-native run-ios and it comes back with this error: CoreData: annotation: Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo' Then it gives another error: error Failed to build iOS project. We ran "xcodebuild" command but it exited with

React Native iOS and Android folders not present

做~自己de王妃 提交于 2019-12-02 20:07:12
I'm new to react native, and I've been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creation. Basically, when creating the project with npm, I get some starting files (App.js etc.) and a node_modules folder. I've got it up and running with expo, which created the .expo folder as well. However, when I go to react's official documentation or look into plugins/addons on git they talk several times about an android and an iOS folder in the project root. But they are nowhere to be seen. I then got some hints that I