Skip to content

v5.1.0 crashes on Expo 53 with newArchEnabled: false on iOS #1376

@drubetti

Description

@drubetti

Checklist

Description

Version 5.1.0 crashes on Expo 53 with newArchEnabled: false on iOS with the following error:

Arugument 3 (NSNumber) of A0Auth0.initializeAuth0WithConfiguration has unspecified nullability but React requires than all NSNumbers arguments are explicitly marked as `nonnull` to ensure compatibility with Android.
Image

Reproduction

  1. Create a new Expo 53 project (e.g.: npx create-expo-app --template default@53);
  2. In app.json, set "newArchEnabled": false;
  3. Import 'react-native-auth0' somewhere in the JS/TS code (e.g.: import Auth0 from 'react-native-auth0';);
  4. Build the Expo development client for iOS;
  5. Install the development client on an iOS device (or on the iOS simulator);
  6. Start the development server (expo start --dev-client) and connect the development client to it;
  7. The development client will crash.

Additional context

Example projects, where the error can always be reproduced:

The development client does not crash on Android.
The previous version 5.0.1 works on both Android and iOS.

react-native-auth0 version

5.1.0

React Native version

0.79.2

Expo version

53

Platform

iOS

Platform version(s)

18.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions