Expo code for google socail login inside webview

I have the same problem as this java - Android Google login not working inside WebView - Stack Overflow

Except I am trying to do this in expo and I have no clue how to incorporate the suggested solution to my code:

This is how my current code looks like:

return (
          <StatusBar barStyle='dark-content' />
          <SafeAreaView style={styles.flexContainer}>
            <WebView source={{ uri: 'https://https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2f' }}
    		mixedContentMode = "compatibility"

i.e. my questions are:

(1) where do I add this code as suggested in the solution:


(2) Considering I am doing it for SO for my education, how would “yourAppName” look like. If you see the url, it is pretty long

Or I can incorporate other answers also to make my case work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.