Is the onPress prop memoized? Because if it is, there is an issue since I am using state in onPress and it using the wrong state.
Using Expo SDK 46
It seems like onPressIn works because it is directly being passed into the component, but ideally I would like to use onPress as it is significantly better UX.
Here is a reproducible demo: https://snack.expo.dev/@anshnanda/awesomebutton-not-working
Is the onPress prop memoized? Because if it is, there is an issue since I am using state in onPress and it using the wrong state.
Using Expo SDK 46
It seems like
onPressInworks because it is directly being passed into the component, but ideally I would like to useonPressas it is significantly better UX.Here is a reproducible demo: https://snack.expo.dev/@anshnanda/awesomebutton-not-working