react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

Warning: TypeError: Cannot read property 'bubblingEventTypes' of null

Open mlcpro opened this issue 1 year ago • 1 comments

Describe the bug Warning: TypeError: Cannot read property 'bubblingEventTypes' of null

Dependency versions

  • React Native version: 0.75.4
  • React version: 18.3.1
  • React Native Fast Image version: ^8.6.3

Note: if these are not the latest versions of each I recommend updating as extra effort will not be taken to be backwards compatible, and updating might resolving your issue.

mlcpro avatar Oct 14 '24 06:10 mlcpro

I also encountered this issue, but reopening my emulators fixed it.Try closing and opening your simulator and android emulator.

jedaydiya avatar Oct 14 '24 12:10 jedaydiya

I encountered same issue with same version, Solution -

  1. delete node module and reinstall it
  2. cd android && ./gradlew clean
  3. npm run android <-- this is the main step

satyajitX001 avatar Oct 24 '24 06:10 satyajitX001

@mlcpro You've closed the issue. How have you solved the problem ?

FelipeRaulino avatar Dec 18 '24 17:12 FelipeRaulino

@FelipeRaulino yes, i closed the emulators and reopened

mlcpro avatar Dec 23 '24 08:12 mlcpro

I encountered same issue with same version, Solution -

  1. delete node module and reinstall it
  2. cd android && ./gradlew clean
  3. npm run android <-- this is the main step

This fixed the issue. But what could be the RCA ?

eramudeep avatar Jan 06 '25 05:01 eramudeep

Rollback to old React-Native (under 0.75.4) as the new 0.76 use a new architecture which most of libraries are not yet updated and it throws this problem.

IonutDaniel99 avatar Jan 08 '25 19:01 IonutDaniel99

I had the same issue with the iOS simulator and pod install fixed it for me.

1mehdifaraji avatar Jan 19 '25 13:01 1mehdifaraji

@1mehdifaraji Thank you for providing a solution. I have one question. When building for iOS using Expo, I get the same error: Warning: TypeError: Cannot read property 'bubblingEventTypes' of null. You mentioned that it was resolved with pod install, but did you do anything else besides that?

hayata-0 avatar Feb 03 '25 05:02 hayata-0

@hayata-0 You're welcome, no I only did pod install but I'm not using expo so you may need to rollback react-native or expo or try installing and using an earlier version of the library and try clearing cache and rebuild.

1mehdifaraji avatar Feb 03 '25 06:02 1mehdifaraji

I figured out after several trial and error that this was also a problem from patches of different libraries. In my case i had an error on React-Charts so i did a patch. That patch created the bubblingEventTypes because the return type was incorrect .

Might be worth looking if you have applied patches over node_modules libraries.

IonutDaniel99 avatar Feb 03 '25 07:02 IonutDaniel99

I'm receiving the same error with Flashlist in expo 52 ,is there any fix ?

Hiba-Bazerbashi avatar Feb 07 '25 19:02 Hiba-Bazerbashi

doing a whole eas rebuild fixed this for me

ArjunK01 avatar Feb 25 '25 18:02 ArjunK01

I faced this same issue with react-native-blasted-image, I deleted app from my emulator and re-build the project, its working now

iamabdulhaseeb avatar Mar 04 '25 12:03 iamabdulhaseeb

I also encounter this issue using Expo 52. Doing the following steps did not work for me 🙃

  • Delete node_modules and ios folders
  • npx expo prebuild --platform ios
  • Build project in XCode
  • npm run dev

timohuennebeck avatar Mar 21 '25 16:03 timohuennebeck

If you using Expo npx expo install expo-linear-gradient then import { LinearGradient } from 'expo-linear-gradient';

  • Future reference for people that experience this error when directly using react-native-linear-gradient on expo.

luigi-dv avatar Mar 26 '25 00:03 luigi-dv

I am facing the same issue while trying to use "LinearGradient" from react-native-linear-gradient and also I have tried using "expo-linear-gradient". Both are throwing the same issues. Any solve for that?

diponkorcs avatar Apr 21 '25 17:04 diponkorcs

If you using Expo npx expo install expo-linear-gradient then import { LinearGradient } from 'expo-linear-gradient';

  • Future reference for people that experience this error when directly using react-native-linear-gradient on expo.

Thanks. Works for me.

diponkorcs avatar Apr 21 '25 17:04 diponkorcs

If you are using LinearGradient

Make sure you are importing LinearGradient from the correct package: import LinearGradient from 'react-native-linear-gradient';

If you’re using Expo, make sure you're importing it from the correct Expo wrapper: import { LinearGradient } from 'expo-linear-gradient';

moonmirXD avatar May 06 '25 16:05 moonmirXD