Navigation color is not changing in my build app.
I have integrated expo-updates
in my app and it works perfectly fine. All the changes are getting updated but not the NavigationBar color. Also, the navigation bar color gets changed in the development mode in Expo Go App, but after updating the app by publishing it, no changes are seen there…
Suppose my Home Screen has text component say like this
<Text>This is a text before update</Text>
and my app.json looks like this
{
"expo": {
"name": "example",
"slug": "example",
"version": "1.2.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "cover",
"backgroundColor": "#2e2a5a"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"bundleIdentifier": "com.example.example",
"buildNumber": "1.0.0",
"supportsTablet": true
},
"android": {
"package": "com.example.example",
"versionCode": 1,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#2e2a5a"
}
},
"androidStatusBar": {
"barStyle": "light-content",
"backgroundColor": "#2e2a5a"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
In the expo go app I see the Text perfectly fine
Now when I change the Text
component and app.json
as follows
Changed Text component <Text>This is a changed updated Text</Text>
My app.json
to this
{
"expo": {
"name": "example",
"slug": "example",
"version": "1.2.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "cover",
"backgroundColor": "#2e2a5a"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"bundleIdentifier": "com.example.example",
"buildNumber": "1.0.0",
"supportsTablet": true
},
"android": {
"package": "com.example.example",
"versionCode": 1,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#2e2a5a"
}
},
"androidStatusBar": {
"barStyle": "light-content",
"backgroundColor": "#2e2a5a"
},
"androidNavigationBar": {
"barStyle": "light-content",
"backgroundColor": "#2e2a5a"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Now I see the Text
component and Navigation Bar
color getting changed in Expo Go App but after I run expo-publish
, I only see the Text component getting changed and not the Navigation Bar
color in the standalone app. Is it not reading the app.json
file or should I rebuild the app.