📌  相关文章
📜  用于标签导航的组件重新渲染 - Javascript 代码示例

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

代码示例1
import { useIsFocused } from '@react-navigation/native';

class Home extends React.Component {
  render() {
    // Get it from props
    const { isFocused } = this.props;
  }
}

// Wrap and export
export default function(props) {
  const isFocused = useIsFocused();

  return ;
}