react-native-app-auth: RNAppAuth Object is undefined.

I think something is broken with your library.

OS: Android Functionality: authorize

Where RNAppAuth is defined: 
- index.js@L4 ( const { RNAppAuth } = NativeModules) 

React Native Version: 0.38 React-Native-App-Auth: “^2.6.1”

Whenever I try to call the authorize function with the proper credentials, it returns a:

"Calling an undefined property authorize" error. 

Logging out the RNAuthApp object, I discovered that indeed the RNAuthApp object is undefined! This means there’s either NativeModules being included is incorrect.

Solutions I’ve tried:

  • react-native linked the library already.
  • I’ve restarted my running server to purge any “cached?” elements.

Does anyone else have this problem? Should I be diving deeper into why NativeModules is undefined?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Hi @mafelix - sorry you happened to try the library at the awkward time when the docs were out of date with the latest release.

I’ve just published v3.0.0. Could you please try again with the latest version 🙏