简体   繁体   中英

Can't open React Native project

I have a problem with RN. I'm a newbie in RN, but I know a little bit of React.

So I tried to clone and open this project: https://github.com/mapbox/store-locator-react-native/

But I couldn't. I tried putting expo and running the project on an Android emulator, but even after I tried installing and uninstalling multiple packages, I always get some error. I also tried with npx react-native run-android but it doesn't work (in the folder with the project, not the base).

Could please someone tell me how to make this project work on my local machine and maybe even upgrade it to the newest RN? Thanks

you have to navigate to your project

follow the steps i am assuming your project on Desktop launch terminal and write

cd Desktop/RNStoreLocatorExample 

if you have IOS platform
do

npm install

cd ios 

then

pod init 
pod install 

cd ..

react-native run-ios

or if you have android write

 react-native run-android

Hope it will work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM