react-native-really-awesome-button icon indicating copy to clipboard operation
react-native-really-awesome-button copied to clipboard

Hair trigger when overlaying other button

Open SimonAM opened this issue 5 years ago • 0 comments
trafficstars

Situation: Using a start and pause button, one "covering" the other using inline conditional control Issue: The pause and start onPress-handlers accidentally fires when the other button is pressed (hair trigger). Troubleshooting: Using react native Button-element removes the issue.

{!isPaused ?
    <AwesomeButton
                    ripple
                    onPress={() => timerStart()}
                    disabled={!isValid}
                        > Start
     </AwesomeButton>
                    : 
    <AwesomeButton
                            backgroundColor="crimson"
                            backgroundDarker="darkred"
                            ripple
                            onPress={() => dispatch(pauseTimer())}
                                > Paused
       </AwesomeButton>
 }

SimonAM avatar Oct 23 '20 16:10 SimonAM