浏览代码

tabPosition props 처리

goodboy 6 年之前
父节点
当前提交
84c6a6607d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Player.js

+ 1 - 1
src/components/Player.js

@@ -157,7 +157,7 @@ const onShare = async () => {
 
 export default props => {
   const [modalVisible, setModalVisible] = useState(null);
-  const { y: tabY } = props.Pages.tabPosition;
+  const { y: tabY } = props.tabPosition;
   const destination = tabY - minHeight - getStatusBarHeight(true);
   const [currentPlayerValue, setCurrentPlayerValue] = useState(0);
   const [isPlay, setPlay] = useState(false);