react native android oauth2
<p>I am developing a react-native application, in this application im trying to authenticating using oauth2. Now im trying to use a webview to retrieve my redirect_uri credentials, but im unsure how to retrieve it in react-native on a Android device.</p>

<p>I have found a example but it doessnt explain how to get the acces token in a variable, and I dont know how to implement this inside react-native.</p>

<p>for this purpose I am trying to use a implicit flow.</p>

<blockquote>
  <p>Grant Type: Implicit
  The implicit grant type is used for mobile apps and web applications (i.e. applications that run in a web browser), where the client secret confidentiality is not guaranteed. The implicit grant type is also a redirection-based flow but the access token is given to the user-agent to forward to the application, so it may be exposed to the user and other applications on the user's device. Also, this flow does not authenticate the identity of the application, and relies on the redirect URI (that was registered with the service) to serve this purpose.</p>
  
  <p>The implicit grant type does not support refresh tokens.
  The implicit grant flow basically works as follows: the user is asked to authorize the application, then the authorization server passes the access token back to the user-agent, which passes it to the application. If you are curious about the details, read on.
  <a href="https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2</a></p>
</blockquote>

<p><a href="https://stackoverflow.com/questions/16195779/integrate-oauth2-with-native-ios-android-mobile-application?answertab=oldest#tab-top">Integrate oauth2 with native (iOS/Android) mobile application</a></p>

<p>My question is what should my redirect_uri be?
How can I retrieve the variables on react-native Android?
Is 'implicit flow' the way to use on a mobile application?</p>