flatlogic / react-native-starter

🚀A powerful react native starter template that bootstraps development of your mobile application
https://reactnativestarter.com
Mozilla Public License 2.0
2.21k stars 712 forks source link

Does not run on my device using expo #78

Open jsiddharth opened 3 years ago

jsiddharth commented 3 years ago

I had to run tons of command and fixes to get it working on expo (ubuntu).

//Init expo sudo npm install expo-cli --global

// Add Expo to existing project

sudo npm add expo --force
sudo npm audit fix --force
//Upgrade SDK to 41
sudo npm install --global yarn --force
sudo npm install --global yarn

//Upgrade to 41 does not work? (/usr/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)

sudo npm i -g expo-cli
sudo expo update 33.0.0 // trying 33 first

Also had to add a expo component to my app.json

{
  "name": "ReactNativeStarter",
  "displayName": "ReactNativeStarter",
  "expo": {
    "name": "My app",
    "slug": "ReactNativeStarter"
  }
}

Finally I am stuck on some dependent folder that does not exist.

react-native-starter-master/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js Module not found: Can't resolve '../../Utilities/Platform' in 'react-native-starter-master/node_modules/react-native/Libraries/Components/TextInput'

NikhilHulle commented 3 years ago

How did you eventually get it to work?

jsiddharth commented 3 years ago

I did not, I was stuck here. This forum did not offer any support too. Sad.

jsiddharth commented 3 years ago

I switched to React, and realized that node latest version is not stable. Hence on react too I default to older versions. This is something I can try with react native, older versions of "node".

jsiddharth commented 3 years ago

Check out my answer for react here

Mustafa-Rasheed commented 3 years ago

same still facing this issue after re-install the node.js. does anybody know how to run an android device any command?

pmartini commented 2 years ago

the only possible way to run it on Android is finding old apk version of ExpoGo somewhere. It says that app is using Expo v40 which is not compatible with current ExpoGo client on Android.

FakharKhan110 commented 2 years ago

It is not working for run android command any suggestions ?

Tararan commented 1 year ago

Did anyone here manage to get it up and running?