📅  最后修改于: 2022-03-11 15:03:42.393000             🧑  作者: Mango
function Profile({ navigation }) {
React.useEffect(() => {
const unsubscribe = navigation.addListener('focus', () => {
// do something
});
return unsubscribe;
}, [navigation]);
return ;
}