expo

How to save a Picture to a specific folder from React Native Camera Roll

老子叫甜甜 提交于 2019-12-22 11:27:35
问题 So I'm using Expo's Camera API to take a picture, like so: takePicture = async function() { if(this.camera) { this.camera.takePictureAsync().then(data => { CameraRoll.saveToCameraRoll(data.uri); }).then(() => { this.setState({ photoId: this.state.photoId + 1, }); }); } }; Now, I'd like to specifically retrieve the pictures I take with this app to work with later. I figure an easy way to do this would be if the app saved its pictures to a separate folder in the camera roll, much like how

react-navigation dynamic header doesn't work?

99封情书 提交于 2019-12-22 10:09:28
问题 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

Expo not loading (React-Native) — null Expo SDK version

喜夏-厌秋 提交于 2019-12-22 04:44:07
问题 My app was working till today but now it looks like something happened to version 18 of Expo. I got this error: The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v20.0.0. The author should update their experience to a newer Expo SDK version. I then: Updated to Expo v20.0.0 Handled all unmet dependencies yarn cache clean rm -rf node_modules/ Reinstalled local node modules and I'm still getting the same error. What do I need to do to get

Expo XDE “timeout of 60000 ms exceeded”?

感情迁移 提交于 2019-12-22 04:27:13
问题 I am using Expo XDE to create a new project for my first react native application. But whenever I click on "create new project", it starts downloading some stuff and errors out. Don't know where to increase this timeout value, I checked the documentation of expo but could not find anything related to this. Any leads here is really appreciated. Please note that I installed expo xde-2.22.0.dmg on mac OS High Sierra version 10.13 (17A405) 回答1: Looks like someone reported this issue to expo after

expo cli and ADB error: can not connect to daemon

我的未来我决定 提交于 2019-12-22 01:17:39
问题 I am trying to get expo CLI and ADB working on my PC (Win 10 64bit) with the Genymotion emulator Google Pixel 3. When I run "on android device/ emulator from expo cli" I get the following logs: 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

Could not load exp:// Something went wrong

随声附和 提交于 2019-12-21 03:38:18
问题 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!<

React Native Expo StackNavigator overlaps Notification bar

我的梦境 提交于 2019-12-20 18:27:55
问题 I am trying to implement navigation bar for my React Native Expo app. Here is a problem: "dependencies": { "expo": "^18.0.3", "react": "16.0.0-alpha.12", "react-native": "^0.45.1", "react-navigation": "^1.0.0-beta.11" } I don't know where and how I can set up styles for this component to make it not overlap with notifications bar. I tried to set marginTop: StatusBar.currentHeight for my root View but it didn't work. It applied the margin on the View but not on the navigation bar. My App:

Can't load expo app: Something went wrong

陌路散爱 提交于 2019-12-20 11:54:09
问题 I've created an expo app with exp init MyApp command and started it by running exp start in MyApp directory. Then I'm scanning barcode which was printed in console with expo mobile app on android device. Then "Something went wrong" screen is rendered instead of the app. View log shows "Uncaught Error: Couldn't load exp://.....". No errors in expo packager console output. It used to work sometimes ago. 回答1: For me the problem was happening when running over WiFi, as the tools always use the

React Native iOS and Android folders not present

人盡茶涼 提交于 2019-12-20 08:56:14
问题 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

createStackNavigation invariant violation element type is invalid expected a string

橙三吉。 提交于 2019-12-20 07:11:11
问题 Upon creating importing and using createStackNavigation I'm getting the following error. Any help would be greatly appreciated! Also, this is my first app in react-native so please be patient with me. I've tried other versions of StackNavigation read other posts relating to the error but none of them seem to get me anywhere. import React, { Component } from "react"; import { Center } from "@builderx/utils"; import { View, StyleSheet, Image, Text } from "react-native"; import {