I recently updated to Expo SDK v51 from v50, and upon opening my app with Expo Go I get the following error: “TypeError: freezeEnabled is not a function (it is undefined)”. Here is the stack trace and LogBox screenshot respectively. The error snippet in LogBox is from the react-native-screens package in the file ScreenStack.tsx – I looked at the react-native-screens code in GitHub and afaik freezeEnabled is indeed defined… To my knowledge the error I’m getting has something to do with my navigation stack but I could be wrong.
What’s frustrating is that the app runs fine on Expo Go if react-native-screens is version 3.29.0, but builds w/ eas build fail on this version. Once I bump up to react-native-screens version 3.31.1, expo-doctor stops complaining but then I get the error described.
I’ve also tried to reproduce the error on a fresh repo with a similar package.json and App.js setup, but cannot replicate the error. See below for my package.json. Any help would be greatly appreciated – this is my first time posting here so apologies if I’m missing anything. Here is the link to the GitHub branch w/ sdk v51 if you’d like to take a look at App.js etc.
{
"name": "savetuba",
"version": "1.0.0",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@babel/preset-env": "^7.24.7",
"@expo-google-fonts/balsamiq-sans": "^0.2.3",
"@expo-google-fonts/scada": "^0.2.3",
"@expo/config-plugins": "~8.0.0",
"@expo/vector-icons": "^14.0.0",
"@fortawesome/fontawesome-svg-core": "^6.1.0",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-native-fontawesome": "^0.3.2",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@reduxjs/toolkit": "^1.9.5",
"axios": "^1.7.2",
"cocoapods": "^0.0.0",
"expo": "^51.0.14",
"expo-camera": "~15.0.11",
"expo-dev-client": "~4.0.18",
"expo-font": "~12.0.7",
"expo-image": "~1.12.12",
"expo-image-picker": "~15.0.5",
"expo-linear-gradient": "~13.0.2",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-updates": "~0.25.17",
"firebase": "^10.12.2",
"i18n-js": "^4.4.3",
"i18next": "^23.11.5",
"intl-pluralrules": "^2.0.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-i18next": "^14.1.2",
"react-native": "0.74.2",
"react-native-draglist": "^3.6.0",
"react-native-gesture-handler": "~2.16.1",
"react-native-leaderboard": "^1.0.6",
"react-native-paper": "^4.11.2",
"react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-size-matters": "^0.4.0",
"react-native-svg": "15.2.0",
"react-native-vector-icons": "^9.1.0",
"react-redux": "^9.1.2",
"redux": "^5.0.1",
"styled-components": "^6.1.11",
"text-encoding": "^0.7.0"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"eslint": "^8.9.0",
"eslint-plugin-react": "^7.28.0"
},
"private": true,
"resolutions": {
}
}
jimothy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.