Closed amoghkulkarnifr closed 1 month ago
It happens the same to me
Hello!
I see that you are using Expo here, is it possible that you have not run the prebuild
/build commands so that the native module is built and linked correctly?
Otherwise, could you attach a simple reproducible example that I could take a look at?
Hello @zibs, thanks for getting back. I did run the prebuild command to generate the necessary files, still no luck. As per the reproducible example goes, I tried to include as much code that I could provide in the original post. Anything else specifically that I could provide that might help you?
Hey @amoghkulkarnifr, if you could provide a link to a public repo that I could clone and reproduce the error with, that would be the most helpful thing!
Were you able to fix this? I'm having the same issue with a project using expo
Hey @fabiohvp -- I'd be happy to a look at a reproducible code example that I can run -- otherwise there's not much I can do.
If you're using expo, you have to both prebuild to generate the native files/pods, and then rebuild the actual app on the device. If you don't do this, then the native code doesn't exist on the app/device for it to run.
Issue
I am trying to use Azure AD B2C services in an Android app. I have installed and setup
react-native-app-auth
by usingnpm install react-native-app-auth --save
and updating myandroid/app/build.gradle
file according to these instructions.My proof-of-concept code for using this library is as follows (which is a modified version of this example and this config combined) -
When I try to call
authorize
API, I get the error message in the alert boxCannot read property 'authorize' of null
(screenshot below). This seems to be a duplicate of #817 (which is marked as 'solved', but the issue still continues to get similar reports from other devs). Can this be resolved? How can I debug this?Environment
Azure AD B2C
Android
react-native
Version:0.72.1
react-native-app-auth
Version:7.2.0
~49.0.18