According to the react native docs the style prop on Pressable receives "Either view styles or a function that receives a boolean reflecting whether the component is currently pressed and returns view styles.". When i try to pass a function to get the current pressed state in style i get a type error.
According to the react native docs the style prop on Pressable receives "Either view styles or a function that receives a boolean reflecting whether the component is currently pressed and returns view styles.". When i try to pass a function to get the current pressed state in style i get a type error.
the error received: