Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Missing app.json. error in Expo XDE

I have developed an app using React-native, now i converted to expo using exp convert. I did all the changes to folder which is need (by following steps in expo-next-steps.txt) but when i run project on expo XDE, i am getting error like Error: Missing app.json. How to solve this problem? and i used local push notification in react-native app. But in project structure there is file called app.json, still getting this error. i am new to expo, anyone please help me out.

like image 820
Prasanna Avatar asked Apr 04 '17 07:04

Prasanna


People also ask

What is app JSON Expo?

app.json is your go-to place for configuring parts of your app that don't belong in code. It is located at the root of your project next to your package.json. It looks something like this: { "expo": { "name": "My app", "slug": "my-app" } } Most configuration from app.

How do you add Expo to existing native app?

Install the expo package and Expo module infrastructure to your native project: npx install-expo-modules . Install the Expo modules you want to use: e.g., to install expo-av, run npx expo-cli install expo-av ; or, if you have expo-cli globally installed (recommended), you can run: expo install expo-av .

How do I run my Expo app?

Install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo app to scan the QR code from your terminal to open your project. On iOS, use the built-in QR code scanner of the Camera app.

Can I use Expo API in React Native?

Note: this post was originally published on February 28, 2019, and subsequently updated on March 14, 2019 to reflect improvements to the workflow. Starting today, you can use as little or as much of the Expo SDK as you like in any React Native app.


1 Answers

The expo XDK looks for the expo SDK version in the app.json file. Thus, your app.json should look something like :

{
  "name": "MyAPP",
  "displayName": "MyAPP",
  "expo": {
  "sdkVersion": "18.0.0"
 }
}

Replace the "18.0.0" with your SDK version. Such error emerges when you create the app using

react-native init

instead of

create-react-native-app 

I perceive this as one of the reasons. There may be more such explanations to such occurrences.Happy coding!

like image 60
Neelotpal Nag Avatar answered Oct 09 '22 21:10

Neelotpal Nag