WrathChaos / react-native-dynamic-search-bar

Medium Article: https://freakycoder.com/react-native-library-dynamic-search-bar-c03fea9fae36
MIT License
481 stars 52 forks source link

Expo installation is not working #38

Closed bishoyroufael closed 3 years ago

bishoyroufael commented 3 years ago

Trying to install the expo version with npm i WrathChaos/react-native-dynamic-search-bar#expo Error:

npm ERR! prepareGitDep 1> 
npm ERR! prepareGitDep > @expo/vector-icons@10.0.6 prepare /home/bishoy/.npm/_cacache/tmp/git-clone-3eb47acd
npm ERR! prepareGitDep > expo-module prepare && npm run generate-lazy && npm run copy-vendor
npm ERR! prepareGitDep 
npm ERR! prepareGitDep expo-module-scripts: README.md exists, not updating
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! prepareGitDep /home/bishoy/.npm/_cacache/tmp/git-clone-3eb47acd/node_modules/expo-module-scripts/bin/npx: line 8: yarn: command not found
npm ERR! prepareGitDep npm ERR! file sh
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno ENOENT
npm ERR! prepareGitDep npm ERR! syscall spawn
npm ERR! prepareGitDep npm ERR! @expo/vector-icons@10.0.6 prepare: `expo-module prepare && npm run generate-lazy && npm run copy-vendor`
npm ERR! prepareGitDep npm ERR! spawn ENOENT
npm ERR! prepareGitDep npm ERR! 
npm ERR! prepareGitDep npm ERR! Failed at the @expo/vector-icons@10.0.6 prepare script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     /home/bishoy/.npm/_logs/2020-10-21T02_14_11_264Z-debug.log
npm ERR! prepareGitDep 
npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bishoy/.npm/_logs/2020-10-21T02_14_11_745Z-debug.log

Any ideas how to solve it? The whole idea of using expo branch is for the spin animation. I think the react-native-spinkit will not work with pure expo cause it is a native module. I recommend substituting that with React Native Animated SpinKit

i.e Both are the same but this one is optimized to work well with expo. In this case the same version will work with both expo and non expo users

WrathChaos commented 3 years ago

Hello @b15h0y, Expo version is really out-dated. I will update it. You cannot use react-native-spinkit with Expo. It requires native modules. I'm going to update expo version with the version 2 and react-native-animated-spinkit for expo.

WrathChaos commented 3 years ago

Hello again @b15h0y, I've completed the expo version :) Also, the example is updated with the latest expo version. Please try it out :)