expo-cli | deploying universal Expo and React Native apps | Frontend Framework library
kandi X-RAY | expo-cli Summary
kandi X-RAY | expo-cli Summary
Tools for creating, running, and deploying Universal Expo and React Native apps. Read the Documentation | Contributing to Expo CLI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of expo-cli
expo-cli Key Features
expo-cli Examples and Code Snippets
npx uri-scheme
npx uri-scheme add project-name
npm uninstall -g expo-cli
npm install -g expo-cli
mkdir apps
cd apps
expo init app-name
npm cache verify
sudo npm install --unsafe-perm -g expo-cli
npm config set strict-ssl false
npm uninstall -g expo-cli
rm -rf /home/anthonyk
npm install -g expo-cli
react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ./ios/main.jsbundle
Some of your project's dependencies are not compatible with currently installed expo package version:
- react-native-reanimated - expected version range: ~1.7.0 - actual version installed: ^1.9.0
- react-native-screens - expected version
chmod -R 777 /project-folder-path
rm -rf node_modules
npm install -g expo-cli
npm install
expo start or npm start
Community Discussions
Trending Discussions on expo-cli
QUESTION
I am trying to make an app using react native. However, the issue is that the modules for the drawer and native aren't being resolved, or "Module not found: Can't resolve '@reactnavigation/drawer'" and "Module not found: Can't resolve '@reactnavigation/native'".
I have done ever step I can think of. I have node.js, installedexpo-cli, ran the expo init, cd to the project name, and installed npm install @react-navigation/stack", "npm install @react-navigation/native", "npm install @react-navigation/drawer", "expo install react-native-gesture-handler react-native-reanimated," and even added "npm install react-native-reanimated@~2.2.0" at the recommendation of someone else.
But even though I think I am following every step, it's still not working.The only other problem I can think of is the node version. But when I uninstall it using "remove program" and reinstall it, at the recommended version, it stays at the earlier downloaded version. But I'm not even sure that is the issue. What should I do?
...ANSWER
Answered 2022-Apr-16 at 08:42your imports are wrong, they should be
QUESTION
New to development, trying to get my development environment setup - any ideas as to how to fix this issue?
Command Entered: npm install -g expo-cli
Error, see below:
...ANSWER
Answered 2022-Feb-02 at 19:41The problem is the directory NPM is trying to write has restricted access (/usr/local/bin). It's a common issue and can be easily fixed by reinstalling NPM using Node Version Manager or manually changing NPM's default directory.
See more here: NPM docs
QUESTION
After migrating from expo-cli
to eas-cli
, I make the app build by using command eas build -p android
.
Then, in order to be able to use it within my custom CI, I get the app archive download url. I used to use expo url:apk
. This command is not working anymore, since I make the build with eas
.
Does anyone know how to get the download url using eas
?
ANSWER
Answered 2022-Feb-25 at 12:04eas build:list --json --limit=1 --platform=android | jq '.[0].artifacts.buildUrl'
QUESTION
I am getting this issue in react native. The things were working fine until I decicded to rerun the project doing yarn install
Here is complete error
TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExpoSplashScreen') at node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError at node_modules\react-native\Libraries\LogBox\LogBox.js:59:8 in errorImpl at node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error at node_modules\expo\build\environment\react-native-logs.fx.js:27:4 in error at node_modules\react-native\Libraries\Core\ExceptionsManager.js:104:6 in reportException at node_modules\react-native\Libraries\Core\ExceptionsManager.js:171:19 in handleException at node_modules\react-native\Libraries\Core\setUpErrorHandling.js:24:6 in handleError at node_modules\expo-error-recovery\build\ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0 at node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch at node_modules\regenerator-runtime\runtime.js:294:29 in invoke at node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch at node_modules\regenerator-runtime\runtime.js:155:27 in invoke at node_modules\regenerator-runtime\runtime.js:165:18 in PromiseImpl.resolve.then$argument_0 at node_modules\react-native\node_modules\promise\setimmediate\core.js:37:13 in tryCallOne at node_modules\react-native\node_modules\promise\setimmediate\core.js:123:24 in setImmediate$argument_0 at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:130:14 in _callTimer at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:181:14 in _callImmediatesPass at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:441:30 in callImmediates at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:387:6 in __callImmediates at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 in __guard$argument_0 at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4 in flushedQueue
I have tried with update expo-cli, expo-splash-screen and with cache clear command expo r -c
Let me know if there is anyone who can help.
...ANSWER
Answered 2021-Dec-22 at 14:39You can show warnnigs of log? Because i have the same problem and resolved with.
Logs:
- expo-app-loading - expected version: 1.1.2 - actual version installed: 1.3.0
- react-native-screens - expected version: ~3.4.0 - actual version installed: 3.10.1
I used the versions 1.1.2 and 3.4.0 in my package: "react-native-screens": "^3.4.0" to "react-native-screens": "3.4.0" "expo-app-loading": "^1.1.2" to "expo-app-loading": "1.1.2"
Remove your node_modules, yarn.lock and package-lock.json
Yarn install or npm install
For me resolved.
QUESTION
Unfortunately, we have projects with different nodejs versions. I am not sure if this is like java where I can have multiple jdks installed(multiple nodejs installed) and each project magically uses the correct version via a config file? Also, most commands in tutorials are not including version numbers when installing tools and libraries like so
- npm install -g expo-cli (tool)
- npm install @react-navigation/native (library)
Coming from gradle with the gradle wrapper where everyone on the team uses the tools and library versions defined in the build.gradle file, this is odd to me. In the gradle world, everyone on the team uses the same exact version of gradle(gradle itself ensures if one person upgrades it in the repo, everyone gets the upgrade and stays in sync on the same version). Then there is plugins/tools and those versions are defined and then libraries and those versions are defined.
- How do I guarantee everyone is using the same npm, node, expo, etc. tools?
- How do I guarantee everyone is using the same libraries?
- How do I guarantee everyone is using the same typescript?
Ideally, we upgrade any of these in the repo + any fixes to the upgrade so on checkout, developers start using the new tool + new *.tsx files so it is seamless much like in the gradle world. In gradle, I upgrade the
- version via a property
- versions of plugins/tools
- build.gradle files
- any source code files
and check that all in as a unit such that any developer that checks out is using all the correct versions together. I want this in react-native for our ios/android mobile project or as close as I can get.
I have hacked things before as in installing 'ant' into the git repo and this worked wonders(even though it is such an ugly hack) and everyone used the tool in the repo instead of the one on their OS. Perhaps there is a way to do that?
A bloated repo with binaries was worth it's weight in gold to prevent version compatibility hell as people upgraded libraries over time. NOT only that we found that tool bugs were easier to track down as we could revert the repo. NOT only that, we could reproduce builds form 1 year ago as the tooling was reverted where todays npm tools can't build the 1 year ago thing due to all the changes. The advantages just kept piling up and up and I can't even remember all of them.
Tooling running from the repo either via bootstrap like gradle wrapper or full blown thing is generally the best option until the full blown thing is really bloated but even then locking it to a hash on another tool repo could be better
Any ideas welcome here to put my team on all the same tooling(works great for people joining the company or team from another project as well to not have to install much).
thanks, Dean
...ANSWER
Answered 2022-Feb-07 at 05:45Typescript and libraries should be taken care of by removing any carets and tildes in your package.json and specifying exact versions.
One low overhead possibility for the rest could be shell scripting and a private package repo. You could host the versions you want to install internally, and get it all through cURLs.
Or you could add some simple scripts in your npm pre-install, for example nvm use 12.2.1
should, through error messages, guide the user to installing nvm and using the proper version.
QUESTION
I have been using this setup for almost half a year now and I upgraded the Expo SDK to 44 (erased all content and settings on the simulator). Ever since, the expo client won't install on the simulator.
Things I have tried:
- run expo client:install:ios
- uninstall and reinstall expo
- uninstall and reinstall watchman
- tried different simulators (15.0 that I used so far)
- creating a new blank expo project
- open the simulator first and then npm start
- I even did a complete MacBook reset (factory, needed to wipe anyway) and reinstalled following the expo documentation.
I read something about installing expo without sudo, but then it will throw errors and will simply not install.
New blank expo project infos:
Expo : 44.0.0 expo-cli: 5.0.3 react-native: 0.64.3
Hope someone knows the solution to this, I really want to get back programming.
...ANSWER
Answered 2022-Jan-28 at 02:06I had the same problem. Turns out using sudo when installing expo-cli is the issue. Run the following commands to resolve it.
QUESTION
I have an iOS Expo based project using the managed workflow. My app runs perfectly fine on the simulator and on Expo Go but on my device (installed with TestFlight) it crashes immediately after seeing the splash screen fade away for a second. Can anyone detect the problem is based on the below logs?
Expo Diagnostics:
...ANSWER
Answered 2022-Jan-28 at 19:56To answer my own issue, the problem was I had a switch statement at the top level of my app that did not have a corresponding break
a the end of the case.
Editing for clarity...
Here was the offending code:
QUESTION
I have recently upgraded my app from SDK 40 to SDK 44 and came across this error App.js: [BABEL]: Unexpected token '.' (While processing: /Users/user/path/to/project/node_modules/babel-preset-expo/index.js)
Error Stack Trace:
...ANSWER
Answered 2021-Dec-21 at 05:52can you give your
- package.json
- node version
I think that's because of the babel issue / your node version, because it cannot transpile the optional chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
maybe tried using latest LTS node version? because as far as I know, the latest LTS node version already support optional chaining
QUESTION
I'm trying to include a link to an external url with key/value pairs prefaced with & using react-native-render-html in an app developed with expo but when I run the code on Expo Go client I've got the error:
TypeError: undefined is not an object (evaluating 'this.entityTrie[0]')
I'm using:
- expo v. 43.0.2
- expo-cli v. 4.12.11
- Expo Go v. 2.22.3
- react-native-render-html v.6.3.1
I'm running expo-cli on Windows 10 Pro and I've tested the bundle on 2 different devices: one Redmi Note 7 with Android 9 and one Redmi 9C with Android 10.
The most disconcerting thing is that if I generate the .apk with expo and install it on the devices it works.
The code is quite simple:
...ANSWER
Answered 2022-Jan-18 at 10:15As Jules Sam. commented I was using a bit old version of Node, following his suggestions I have updated the libraries and it has worked.
Initial versions:
- node: 14.2.0
- npm: 6.14.4
- expo-cli: 4.12.11
Final versions:
- node: 16.13.2
- npm: 8.1.2
- expo-cli: 5.0.3
I followed this steps:
- Install new node version using nvm-windows
- Delete package-lock.json
- Delete node-modules folder
- Install globally last version of expo-cli
- Run npm install
QUESTION
When I install expo it installs but it doesn't install. Here are the details about the issue.
I start off by typing:
...ANSWER
Answered 2021-Sep-30 at 22:54Based on what you posted I'm assuming that the folder where yarn installs global node modules isn't in your path.
Try one of these:
- Try installing globally with npm (which is probably in your path)
npm i -g expo-cli
- Add yarn global folder to path:
echo PATH="$PATH:$(yarn global bin)" >> ~/.bash_profile
See this thread for more info: Yarn global command not working
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install expo-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page