📅  最后修改于: 2022-03-11 14:56:54.086000             🧑  作者: Mango
class HomeScreen extends React.Component { render() { return ( Home Screen ); }}
class DetailsScreen extends React.Component { render() { const { navigation } = this.props; return ( Details Screen itemId: {JSON.stringify(navigation.getParam('itemId', 'NO-ID'))} otherParam: {JSON.stringify(navigation.getParam('otherParam', 'default value'))} ); }}