React Native : 0.41 app.json

What is the thing with the new app.json file generated in react native. I recently upgraded to 0.41.2 and found a new app.json file in my react project directory. Can someone help me figure out what this file is actually for ?

That's used for the new react-native eject command. As stated in the RN source code:

The eject command re-creates the android and ios native folders. Because native code can be difficult to maintain, this new script allows an app.json to be defined for the project, which is used to configure the native app. The app.json config may contain the following keys:

  • name - The short name used for the project, should be TitleCase
  • displayName - The app's name on the home screen

Feel free to check the source

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue