我正在尝试使用按钮运行课程,但无法使其正常工作。我知道,如果我想运行一个类,我只需要使用:
<className />
所以,我试着这样做:
<Button
title="Right button"
onPress={() => <className />}
/>
但是,我遇到了一个错误,所以我可能做错了什么。任何人都可以帮忙吗?
我正在尝试使用按钮运行课程,但无法使其正常工作。我知道,如果我想运行一个类,我只需要使用:
<className />
所以,我试着这样做:
<Button
title="Right button"
onPress={() => <className />}
/>
但是,我遇到了一个错误,所以我可能做错了什么。任何人都可以帮忙吗?