react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 876 forks source link

Google signin overlay is not matching system's theme (color scheme) #1198

Closed mujehoxe closed 10 months ago

mujehoxe commented 10 months ago

Steps to Reproduce

<GoogleSigninButton
        style={tw`h-18`}
        size={GoogleSigninButton.Size.Wide}
        color={
          colorScheme === 'light'
            ? GoogleSigninButton.Color.Light
            : GoogleSigninButton.Color.Dark
        }
        onPress={signIn}
      />

should appear in dark color scheme

my phone has android 12

vonovak commented 10 months ago

Hello and thanks for reporting, I'm not aware of any way to change the theme of the sign in dialog for the legacy android sign in, i.e. this library is not controlling it. You can try reporting this to google directly. Alternatively, you can use the paid one-tap sign in (https://github.com/react-native-google-signin/google-signin#project-setup-and-initialization), where the presented dialog follows the system theme.

Also, in your example, you should not need to specify the color prop - it will use the correct color automatically.

Thank you 🙂