To Configuring App.json file do the following steps #
- This file is located in the project root directory.
- Change the name property to your desired app name.
- Similarly change slug(lowercase character only without spaces), version, bundleIdentifier for iOS and package for android.
- [important] For android, the versionCode and for iOS the buildNumber property will be 1 for the first time you’re uploading it to Play store or app store. After that for every new version release, the versionCode / buildNumber will increase by 1. (I.e., for version 1.0.1 versionCode will be 1. And for version 1.0.2 versionCode will be 2).
- Change splash “backgroundColor” property as needed. (This is the screen you see before the app opens).
- Copy and paste your Google maps API Key in “GoogleMapsApiKey” for iOS and “apiKey” for android. (If you use map feature this step is very important)
- Change the app name under ios > infoPlist properties.
app.json file general structure:
{
"expo": {
"name": "classima",
"slug": "classima",
"version": "2.95.2",
"orientation": "portrait",
"icon": "./assets/icon.png",
"scheme": "classima",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"plugins": [
[
"react-native-maps",
{
"iosGoogleMapsApiKey": "AIzaSyC0xWPUAzIYq0xy3bv5gVe2O6EYGfpF1j9",
"androidGoogleMapsApiKey": "AIzaSyC0xWPUAzIYq0xy3bv5gVe2O6EYGfpF1j9"
}
],
[
"@stripe/stripe-react-native",
{
"merchantIdentifier": "",
"enableGooglePay": false
}
],
[
"expo-notifications",
{
"icon": "./assets/icon96x96.png",
"mode": "production",
"color": "#ffffff",
"defaultChannel": "default",
"enableBackgroundRemoteNotifications": true
}
],
[
"expo-location",
{
"locationAlwaysAndWhenInUsePermission": "Classima uses device location on listing information, Listing search Data and User information."
}
],
"expo-localization",
[
"expo-image-picker",
{
"photosPermission": "Classima needs access to the photo library to select and upload user profile image and Listing Image to the server.",
"cameraPermission": "Classima uses the camera to capture and upload user profile image and Listing Image to the server."
}
],
[
"expo-document-picker",
{
"appleTeamId": "M34L8S85ZU",
"iCloudContainerEnvironment": "Production"
}
],
"expo-apple-authentication",
"expo-router",
[
"expo-splash-screen",
{
"image": "./assets/icons/splash-icon-dark.png",
"resizeMode": "contain",
"imageWidth": 200,
"backgroundColor": "#ffffff",
"dark": {
"backgroundColor": "#000000"
}
}
],
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static",
"deploymentTarget": "15.1",
"forceStaticLinking": [
"RNFBApp"
]
},
"android": {
"compileSdkVersion": 35,
"targetSdkVersion": 35,
"buildToolsVersion": "34.0.0"
}
}
],
"expo-localization"
],
"ios": {
"bitcode": "Debug",
"supportsTablet": true,
"usesAppleSignIn": true,
"bundleIdentifier": "com.classima",
"buildNumber": "80",
"usesIcloudStorage": true,
"config": {
"googleMapsApiKey": "AIzaSyC0xWPUAzIYq0xy3bv5gVe2O6EYGfpF1j9",
"usesNonExemptEncryption": false
},
"infoPlist": {
"NSCameraUsageDescription": "Classima uses the camera to capture and upload user profile image and Listing Image to the server.",
"NSPhotoLibraryUsageDescription": "Classima needs access to the photo library to select and upload user profile image and Listing Image to the server.",
"NSPhotoLibraryAddUsageDescription": "Classima needs access to the photo library to select and upload user profile image and Listing Image to the server.",
"NSLocationWhenInUseUsageDescription": "Classima uses device location on listing information, Listing search Data and User information.",
"NSLocationAlwaysAndWhenInUseUsageDescription": "Classima uses device location on listing information, Listing search Data and User information.",
"NSLocationAlwaysUsageDescription": "Classima uses device location on listing information, Listing search Data and User information.",
"NSMicrophoneUsageDescription": "Classima uses your microphone while taking video of your product for uploading in listing information.",
"CFBundleAllowMixedLocalizations": true,
"UIBackgroundModes": [
"remote-notification"
],
"SKAdNetworkItems": [
{
"SKAdNetworkIdentifier": "cstr6suwn9.skadnetwork"
},
{
"SKAdNetworkIdentifier": "v9wttpbfk9.skadnetwork"
},
{
"SKAdNetworkIdentifier": "n38lu8286q.skadnetwork"
}
]
},
"icon": "./assets/icons/Light.png"
},
"android": {
"package": "com.classima",
"config": {
"googleMaps": {
"apiKey": "AIzaSyC0xWPUAzIYq0xy3bv5gVe2O6EYGfpF1j9"
}
},
"adaptiveIcon": {
"foregroundImage": "./assets/icons/adaptive-icon.png",
"monochromeImage": "./assets/icons/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true,
"predictiveBackGestureEnabled": false,
"permissions": [
"android.permission.CAMERA",
"android.permission.CAMERA_ROLL",
"android.permission.MEDIA_LIBRARY",
"android.permission.READ_EXTERNAL_STORAGE",
"android.permission.WRITE_EXTERNAL_STORAGE",
"android.permission.READ_PHONE_STATE",
"android.permission.LOCATION",
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_FINE_LOCATION",
"android.permission.RECEIVE_BOOT_COMPLETED",
"android.permission.INTERNET",
"android.permission.POST_NOTIFICATIONS",
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_FINE_LOCATION",
"android.permission.RECORD_AUDIO"
],
"blockedPermissions": [
"READ_CONTACTS",
"RECORD_AUDIO"
],
"versionCode": 80
},
"web": {
"output": "static",
"favicon": "./assets/favicon.png"
},
"experiments": {
"typedRoutes": true,
"reactCompiler": true
},
"extra": {
"router": {},
"eas": {
"projectId": "47c5dce0-69e9-4ebf-a637-e5be113bbc00"
}
}
}
}
8. If you see the below marked line in fresh source code, just remove these lines (Only first time). If you do not remove these lines , your build command might fail for the first time. Once you build successfully, these lines will be newly generated for you. You can keep those after first successful build. 