gts
gts

Reputation: 511

React Native Firebase Auth - 'Native module cannot be null'

After installing react-native-firebase-auth to my react-native ejected app,

When trying to access the "auth" module:

import auth from '@react-native-firebase/auth';

I received the following error:

Invariant Violation: Native module cannot be null.

Upvotes: 0

Views: 177

Answers (1)

gts
gts

Reputation: 511

I noticed Xcode create a second app instance on my device during the build process.

Removing both instances from the device and rebuilding resolved this error.

Upvotes: 1

Related Questions