Closed omarichatman closed 1 year ago
When using the Button, when I click the button the function I am passing doesn't get called.
Steps to reproduce the behavior:
Function being passed to the onPress is called
Function being passed to the onPress is not called
import React from 'react'; import { Button } from 'react-native-ui-lib'; export default function Welcome({ navigation }: AuthStackScreenProps<'Welcome'>) { const handleRegisterPress = () => { console.log('Register Button Pressed'); // Not called }; return ( <Button style={styles.button} onPress={() => handleRegisterPress()} color={styles.button.color} backgroundColor={styles.button.backgroundColor} size={styles.button.size} label='Register' fullWidth enableShadow /> ); };
Expo on mobile Android device
Not able to repro anymore...
Closing due to the issue does not reproduce.
I reproduced it. Put the button inside a React-Native Modal.
Description
When using the Button, when I click the button the function I am passing doesn't get called.
Related to
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Function being passed to the onPress is called
Actual behavior
Function being passed to the onPress is not called
More Info
Code snippet
Screenshots/Video
Environment
Expo on mobile Android device
Affected platforms