Danitsu
Danitsu

Reputation: 45

document is not defined react native

Hi everyone im having a problem with my react native project, and Im getting this error: document is not defined

With my code im trying to use the firebase authentication with a phone number using "signInWithPoneNumber()" and when I add the "recaptchaVerifier()" I get that error.

code

Thanks!

Upvotes: 0

Views: 1147

Answers (1)

Kraylog
Kraylog

Reputation: 7553

The firebase code is intended to be used in a browser, where the document is available. The react-native option is the react-native-firebase project, but they still don't support this feature.

You can track their progress on this issue.

Upvotes: 1

Related Questions