자유해결사 6 年之前
父节点
当前提交
fae9b9379d
共有 2 个文件被更改,包括 10 次插入9 次删除
  1. 4 3
      App.js
  2. 6 6
      src/pages/PlayerGesture.js

+ 4 - 3
App.js

@@ -34,17 +34,18 @@ import H from './src/components/Header'
 import SwitchNavigator from './src/navigation/SwitchNavigator'
 import C from 'rn-class'
 
-import { isValidElementType  } from "react-is";
+
 C.addComp(RN);
 C.addComp(EL, "EL", null);
 C.addComp({Header : H}, "Comp" );
-C.addComp({SafeAreaView:SafeAreaView}, "Comp");
+C.addComp({SafeAreaView:SafeAreaView}, "Comp");  
 C.addComp(RN.Picker.Item, "PickerItem")
 
 const App = () => {
  
   useEffect(() => {
-        __DEV__ && KeepAwake.activate();
+        __DEV__ && KeepAwake.activate() ;
+        console.disableYellowBox =true; 
    }, []);
 
 

+ 6 - 6
src/pages/PlayerGesture.js

@@ -22,12 +22,12 @@ import { getInset } from 'react-native-safe-area-view';
 
 const { width, height } = Dimensions.get('window');
 const statusBarHeight = getStatusBarHeight();
-const minHeight = height * 0.1;
-const midBound = height - height / 2.5; 
-const upperBound = 
-  height > 560
-    ?height * 0.75 - getInset('bottom')
-    :height * 0.70;
+const minHeight = height * 0.07;
+const midBound = height - height *0.8; 
+const upperBound = C.n2cls("h80").height;
+  // height > 560        
+  //   ? 
+  //   :height * 0.70;
 
 const {
   Value,