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?