Skip to content

ERROR [TypeError: Cannot read property 'setNativeProps' of null] After Expo Update #191

Description

@wish-me-luck

I just updated my Expo to 54 after updating everything, I got The following Error and toast stopped rendering

ERROR [TypeError: Cannot read property 'setNativeProps' of null]

Code: ToastContainer.js
147 | _setPointerEvents = value => {
148 | if (this._platform !== 'web') {

149 | this._root.setNativeProps({
| ^
150 | pointerEvents: value,
151 | });
152 | } else {
Call Stack
_setPointerEvents (node_modules/react-native-root-toast/lib/ToastContainer.js:149:32)
_show (node_modules/react-native-root-toast/lib/ToastContainer.js:162:29)
setTimeout$argument_0 (node_modules/react-native-root-toast/lib/ToastContainer.js:101:54)

This is my latest package.json

"dependencies": {
...
"@babel/runtime": "^7.28.4",
...
"expo": "^54.0.22",
"expo-apple-authentication": "~8.0.7",
"expo-auth-session": "~7.0.8",
"expo-constants": "~18.0.10",
"expo-crypto": "~15.0.7",
"expo-dev-client": "~6.0.17",
"expo-image-picker": "~17.0.8",
"expo-linking": "~8.0.8",
"expo-location": "~19.0.7",
"expo-router": "~6.0.14",
"expo-secure-store": "~15.0.7",
"expo-splash-screen": "~31.0.10",
"expo-status-bar": "~3.0.8",
"expo-system-ui": "~6.0.8",
"expo-web-browser": "~15.0.9",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-native": "0.81.5",
"react-native-gesture-handler": "~2.28.0",
"react-native-get-random-values": "^1.11.0",
"react-native-maps": "1.20.1",
"react-native-reanimated": "~4.1.1",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-svg": "15.12.1",
"react-native-root-toast": "^4.0.1",
"react-native-web": "^0.21.0",
"react-native-worklets": "0.5.1",
"ts-node": "^10.9.1"
},

I was able to fix everything else, toast is the only one not working now

I have

wrapping everything at
At my _layout.tsx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions