我目前有一个按钮
class Button extends Component{
render(){
return(
<View>
onPress= #I need this to return the second page of my app
<Text style={styles.buttonText}>Next Page</Text>
</View>
)
}
}
我应该怎么做才能将这个按钮链接到我的应用程序的第二个页面?假设我已经导入了该页面。
import SecondPage from './SecondPage'
react-router
4 吗?请给我们更多信息。 - glhrmv