[Error] _reactNative.Dimensions.removeEventListener

Hi, I hope i created the topic right.
I am getting this error after upgrading from expo 45 to 48

This is the full error:

ERROR  TypeError: _reactNative.Dimensions.removeEventListener is not a function. (In '_reactNative.Dimensions.removeEventListener('change', this.handleOrientationChange)', '_reactNative.Dimensions.removeEventListener' is undefined)

This error is located at:
    in withOrientation (at StackView.tsx:104)
    in RCTView (created by View)
    in View (at Transitioner.tsx:267)
    in Transitioner (at StackView.tsx:41)
    in StackView (created by Navigator)
    in Navigator (created by KeyboardAwareNavigator)
    in KeyboardAwareNavigator (created by SceneView)
    in SceneView (at StackViewLayout.tsx:900)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (at StackViewCard.tsx:106)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by InnerScreen)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by InnerScreen)
    in InnerScreen (created by Screen)
    in Screen (at StackViewCard.tsx:93)
    in Card (at createPointerEventsContainer.tsx:95)
    in Container (at StackViewLayout.tsx:975)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (at StackViewLayout.tsx:384)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (at StackViewLayout.tsx:374)
    in PanGestureHandler (at StackViewLayout.tsx:367)
    in StackViewLayout (created by withOrientation)
    in withOrientation (at StackView.tsx:104)
    in RCTView (created by View)
    in View (at Transitioner.tsx:267)
    in Transitioner (at StackView.tsx:41)
    in StackView (created by Navigator)
    in Navigator (created by KeyboardAwareNavigator)
    in KeyboardAwareNavigator (created by NavigationContainer)
    in NavigationContainer (created by AppRuntime)
    in RCTView (created by View)
    in View
    in StyledNativeComponent (created by Styled(View))
    in Styled(View) (created by AppRuntime)
    in AppRuntime (created by LocalizationProvider)
    in LocalizationProvider (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)
 ERROR  TypeError: _reactNative.Dimensions.removeEventListener is not a function. (In '_reactNative.Dimensions.removeEventListener('change', this.handleOrientationChange)', '_reactNative.Dimensions.removeEventListener' is undefined)

This error is located at:
    in NavigationContainer (created by AppRuntime)
    in RCTView (created by View)
    in View
    in StyledNativeComponent (created by Styled(View))
    in Styled(View) (created by AppRuntime)
    in AppRuntime (created by LocalizationProvider)
    in LocalizationProvider (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)

How can i solve it?

I am not using removeeventlistener anywhere in the code. I commented the line where it was.
I have some files which is present there, can someone explain what are they? I think they are bundles when i build the app. Can someone explain those files to me please?
Captura de ecrã 2023-05-17 150742

I also had the same problem when I upgraded from SDK46 to SDK47. Here are my package.json file

{
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "postinstall": "patch-package"
  },
  "dependencies": {
    "@expo/vector-icons": "^13.0.0",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-community/datetimepicker": "6.5.2",
    "deprecated-react-native-prop-types": "^2.3.0",
    "expo": "^47.0.0",
    "expo-app-loading": "~2.1.1",
    "expo-asset": "~8.7.0",
    "expo-barcode-scanner": "~12.1.0",
    "expo-device": "~5.0.0",
    "expo-font": "~11.0.1",
    "expo-localization": "~14.0.0",
    "expo-notifications": "~0.17.0",
    "expo-permissions": "~14.0.0",
    "expo-splash-screen": "~0.17.5",
    "expo-status-bar": "~1.4.2",
    "expo-updates": "~0.15.6",
    "i18n-js": "^3.3.0",
    "md5": "^2.2.1",
    "native-base": "2.13.15",
    "patch-package": "^6.5.0",
    "postinstall-postinstall": "^2.1.0",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-native": "0.70.8",
    "react-native-easy-grid": "^0.2.2",
    "react-native-extra-dimensions-android": "^1.2.5",
    "react-native-gesture-handler": "~2.8.0",
    "react-native-modal": "^11.3.1",
    "react-native-modal-datetime-picker": "^12.0.0",
    "react-native-numeric-input": "^1.9.0",
    "react-native-reanimated": "~2.12.0",
    "react-native-screens": "~3.18.0",
    "react-native-svg": "13.4.0",
    "react-native-table-component": "^1.2.1",
    "react-native-web": "~0.18.7",
    "react-navigation": "4.0.10",
    "react-navigation-drawer": "^1.4.0",
    "react-navigation-stack": "^1.7.3",
    "react-navigation-tabs": "^1.2.0",
    "victory-native": "^32.0.2"
  },
  "devDependencies": {
    "@babel/core": "^7.19.3",
    "babel-preset-expo": "~9.2.1"
  },
  "resolutions": {
    "native-base/@codler/react-native-keyboard-aware-scroll-view": "2.0.1"
  },
  "private": true,
  "name": "fast-fbo",
  "version": "1.0.0"
}

Please help me solve it!