Closed jbienia closed 7 months ago
Hello and thanks for reporting, do you have code to reproduce this with? I cannot repro. Thank you 🙂
@vonovak Do you just want to see how I've implemented it in the file?
@jbienia I'm looking for this: https://stackoverflow.com/help/minimal-reproducible-example
thank you
Sure. There's a not a lot to it. The only way the button taps properly for me is doing what you see below. The onPress is on the TouchableWithoutFeedback instead. In a simulator it works fine with a mouse click, but on my physical device it behaves differently with the touch. When you tried to reproduce did you use a physical(Android) device?
import { GoogleSignin, GoogleSigninButton } from '@react-native-google-signin/google-signin';
<TouchableWithoutFeedback style={styles.button} onPress={() => onGoogleButtonPress()}> <GoogleSigninButton style={{ marginTop: 20, width: 230, height: 48 }} size={GoogleSigninButton.Size.Wide} color={GoogleSigninButton.Color.Light} /> </TouchableWithoutFeedback>
hello @jbienia
The only way the button taps properly for me is doing what you see below
I'm rather interested in the issue reproduction, that is, what code do you use that has the problem of not being able to press the button? What is the code that does not work?
thank you
The onPress does not fire when I tap the button on a physical device. I have to tap it multiple times and in very specific spot to get the function in the onPress prop to execute. Did you try it to reproduce with with a physical device?
<GoogleSigninButton size={GoogleSigninButton.Size.Wide} color={GoogleSigninButton.Color.Dark} onPress={() => console.log("I AM PRESSED")} disabled={this.state.isSigninInProgress} />;
Same here
I cannot repro this, so I'm going to close the issue. Please open a new issue if the problem persists. Thank you 🙂
Steps to Reproduce
Expected Behavior
Should be able to easily press the button anywhere(on the button) and see the onPress callback fire
Actual Behavior
There seems to be a very small part of the button that registers the tap.
Environment