📌  相关文章
📜  react native 获取路由名称 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:36.786000             🧑  作者: Mango

代码示例1
import { useNavigation, useRoute } from '@react-navigation/native';
const Route = useRoute();

console.log(Route);
// Object {
//  "key": "Home-rRl8EIxLOOm9rqd2N6RSZ",
//  "name": "Home",
//  "params": undefined,
// }