expo

How to solve the git permission denied problem with expo init on MacOS?

折月煮酒 提交于 2020-01-06 08:02:10
问题 I was having this annoying git problem with expo init command on my Mac. MacBook-Pro:ReactNativeProjects SoftwareTheory$ sudo expo init proj2 Password: ? Choose a template: expo-template-blank ? Choose which workflow to use: managed ✔ Please enter a few initial configuration values. Read more: https://docs.expo.io/versions/latest/workflow/configuration · 100% completed [11:58:15] Extracting project files... [11:58:15] Customizing project... [11:58:15] Unable to initialize git repo. `git` not

Can't find variable : Self / Can't install firebase

狂风中的少年 提交于 2020-01-06 07:43:53
问题 I work on an App in React-Native / Expo and I can't install firebase. I create a new Projet in Expo : "test2". (No problem) I run "npm install --save firebase" in cmd and i got this : C:\Users\Nils\test>npm install --save firebase node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp WARN Using request for node-pre-gyp https download Success: "C:\Users\Nils\test\node_modules\grpc\src\node\extension_binary\ node-v57-win32-x64-unknown\grpc_node.node" is installed via

VSCode debug Expo project: “Debug adapter process has terminated unexpectedly”

折月煮酒 提交于 2020-01-06 07:38:07
问题 I try to use vscode to debug Expo project. The expo works fine, setting are as bellow: Expo XDE: Host: Tunnel Development Mode iOS Simulator: Enable Remote Debugging But when I add Debug in Exponent in VSCode, and click debug, it will pop up Debug adapter process has terminated unexpectedly without showing any further information. DEBUG CONSOLE show nothing. What should I do to finding out what's going on ? By the way, I didn't see the file ${workspaceRoot}/.vscode/launchReactNative.js but I

Reactnative: code ELIFECYCLE error When installing expo-cli

假如想象 提交于 2020-01-06 05:33:05
问题 I am trying to install expo-cli on windows 10, according it's official site: >npm install expo-cli --global I got this following error: C:\Users\Tazika.SAFARAYANEH>npm install expo-cli --global npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older

Connection Refused Error at Run ReactNative Project

两盒软妹~` 提交于 2020-01-04 13:59:12
问题 I create new react-native project with command: react-native init myProject But When I want run it on emulator or real device with this command: react-native run-android I got this error and app not build: FAILURE: Build failed with an exception. * What went wrong: fresco/1.10.0/fresco-1.10.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/fresco /1.10.0/fresco-1.10.0.pom'. > Connect to 127.0.0.1:9595 [/127.0.0.1] failed: Connection refused: connect In build.gradle I

no request header origin when using expo to express server

梦想与她 提交于 2020-01-04 07:51:43
问题 I'm learning React Native and I'm testing it on my phone with expo and I'm trying to call a an api remotely which has been working perfectly with my react bundle on a web server as well as on localhost. my app.js var allowedOrigins = ['http:// localhost:3000', 'http:// site.com']; app.use(function(req, res, next) { const origin = req.headers.origin; res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); res.header('Access-Control-Allow-Credentials', true); if(allowedOrigins

StackNavigator title not showing in simplest example

时间秒杀一切 提交于 2020-01-04 05:42:08
问题 I just started React Native development, installed Expo , created an app (works), installed react-navigation and tried the first StackNavigator example using the example from https://reactnavigation.org/docs/intro/. I am running npm run ios from the commandline, and using Nuclide IDE. All of which are completely new to me. The problem is, that on running the example the screen in the iOS emulator shows this: Instead of showing a title bar with 'Welcome' on it. As a beginner I have no clue

React Native - “You are currently using minified code outside of NODE_ENV === ”production“ ”

血红的双手。 提交于 2020-01-03 21:56:26
问题 I'm getting this error with React Native, not ReactJS so all the solutions/workarounds with webpack or browserify wont help. Full error: You are currently using minified code outside of NODE_ENV=== "production". This means that you are running a slower development build of Redux. You can use ... bla bla bla ( workarounds for ReactJS ) I'm currently running this config : "expo": "^23.0.0", "react": "16.0.0", "react-native": "https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz",

React Native - “You are currently using minified code outside of NODE_ENV === ”production“ ”

♀尐吖头ヾ 提交于 2020-01-03 21:55:30
问题 I'm getting this error with React Native, not ReactJS so all the solutions/workarounds with webpack or browserify wont help. Full error: You are currently using minified code outside of NODE_ENV=== "production". This means that you are running a slower development build of Redux. You can use ... bla bla bla ( workarounds for ReactJS ) I'm currently running this config : "expo": "^23.0.0", "react": "16.0.0", "react-native": "https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz",

React Native - “You are currently using minified code outside of NODE_ENV === ”production“ ”

淺唱寂寞╮ 提交于 2020-01-03 21:54:57
问题 I'm getting this error with React Native, not ReactJS so all the solutions/workarounds with webpack or browserify wont help. Full error: You are currently using minified code outside of NODE_ENV=== "production". This means that you are running a slower development build of Redux. You can use ... bla bla bla ( workarounds for ReactJS ) I'm currently running this config : "expo": "^23.0.0", "react": "16.0.0", "react-native": "https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz",