React Native : 0.41 app.json
Solution 1
That's used for the new react-native eject
command. As stated in the RN source code:
The eject command re-creates the
android
andios
native folders. Because native code can be difficult to maintain, this new script allows anapp.json
to be defined for the project, which is used to configure the native app. Theapp.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
Solution 2
Since I don't plan to eject
I removed the app.json
File (just to have less files flying around at root level). App still works as expected.
Related videos on Youtube
Ashik Vetrivelu
Software Engineer at Intuit Inc, working on micro-services.
Updated on September 14, 2022Comments
-
Ashik Vetrivelu over 1 year
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 ?
-
Pir Shukarullah Shah over 6 yearsThanks, and what is
jsconfig.json
file for? -
Ilja over 6 yearsis it safe to remove this file if I created my project through react native cli, without usig create-react-native-app thing?
-
Lelouch almost 6 yearsi'd like to know too if it's safe to delete the file if i'm using react-native cli
-
HarshitMadhav about 5 yearslink broken :(.