SafeArea.types.ts: Unexpected token, expected ";"

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): iOS (maybe others too)

When trying to run the app on the iOS simulator I get the following error:

Failed building JavaScript bundle.
SyntaxError: .../node_modules/expo/node_modules/react-native-safe-area-context/src/SafeArea.types.ts: Unexpected token, expected ";" (42:19)

  40 |   children?: React.ReactNode;
  41 |   mode?: 'padding' | 'margin';
> 42 |   edges?: readonly Edge[];
     |                    ^
  43 | };
  44 |

Same issue as here:

Which is supposedly fixed in latest version of that package:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.