Browse Source

해상도에 따라 플레이어 높이 변경 동적 설정
추후 해상도에 따라 조건문 추가 필요 가능성 있습니다.

goodboy 6 years ago
parent
commit
09bbaad16a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/pages/PlayerGesture.js

+ 2 - 2
src/pages/PlayerGesture.js

@@ -21,8 +21,8 @@ import PlayerContents from '../components/PlayerContents';
 
 const { width, height } = Dimensions.get('window');
 const statusBarHeight = getStatusBarHeight();
-const minHeight = 64;
-const midBound = height - 100 * 3;
+const minHeight = height*0.1;
+const midBound = height - height/2.5;
 const upperBound = midBound + minHeight;
 
 const {