benevbright/react-navigation-collapsible

Error on require react-native-iphone-x-helper "undefined is not an object"

Opened this issue · 0 comments

Information

  • react-native version: 0.66.3
  • react-navigation version: 6.0.6
  • react-navigation-collapsible version: 6.3.0
  • Platform (iOS/Android): iOS
  • react-native init or Expo: init

Detail

On iOS (iPhone 13 simulator), when I open the screen containing the collapsible header, I'm obtaining this error:

TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[2], "react-native-iphone-x-helper").isIphoneX')

I've also tried to install react-native-iphone-x-helper on my side, but the problem persists. The library was perfectly working before updating the libraries (before: react-native 0.63.3, navigation 5.8.7, collapsible 5.8.1).

EDIT: I've already executed pod update and pod install in my iOS folder, also tried with yarn install --force.