th3rdwave / react-native-safe-area-context

A flexible way to handle safe area insets in JS. Also works on Android and Web!
MIT License
2.18k stars 201 forks source link

RNCSafeAreaProvider breaking on run time on ios while upgrading to RN 0.72.17 #547

Open profaddy opened 3 weeks ago

profaddy commented 3 weeks ago

While upgrading from rn-0.70.15 -> rn-0.72.17 getting below attached issue

Unhandled JS Exception: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

This error is located at:
    in RNCSafeAreaProvider
    in Unknown
    in c
    in RCTView
    in Unknown
    in Portal.Host
    in Unknown
    in f
    in Z
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in l, js engine: hermes

Tried to update the react-native-safe-area-context to 3.3.2 ,4.7.4 and also >=4.5.3 <4.8 as suggested by align-deps but nothing worked.

package.json

jrahme-softimpact commented 5 days ago

@profaddy did u find a solution ?

jacobp100 commented 5 days ago

Are you using new arch?

jrahme-softimpact commented 5 days ago

@jacobp100 we are creating a react native tvos project following this repo https://github.com/react-native-tvos/react-native-tvos. On android we are adding +newArchEnabled=false as oer the repo and we are able ro run the project and produce aok. On mac we are trying to run the app on simulator but we are getting a red screen check screenshot

Screenshot 2024-11-19 at 9 15 28 AM