I am trying to run a class using a button but I can't make it work. I know that if I want to run a class I just need to use:
<className />
So, I tried to do this:
<Button
title="Right button"
onPress={() => <className />}
/>
However, I got an error so I'm probably doing something wrong. Can anyone help?