Expo app stucks on Splash screen in production mode .

I have built an app on React Native , the app works fine in the development mode but it stucks on the splash screen in the production build and I have also tried the
‘expo start --no-dev --minify’ and it also stucks on the screen.

My package.json looks something like this :

{
  "name": "demo",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.15.11",
    "axios": "^0.24.0",
    "currency-symbol-map": "^5.0.1",
    "expo": "~43.0.0",
    "expo-status-bar": "~1.1.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.2",
    "react-native-dropdown-picker": "^5.2.3",
    "react-native-paper": "^4.10.0",
    "react-native-paper-dropdown": "^1.0.7",
    "react-native-web": "0.17.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true
}

Everything works fine in the development build but the screens stucks on the splash screen in the production build .

The problem was with the environment variables that was being imported from environment.js file .

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.