Merge pull request #484 from esteemapp/bugfix/pin-code-design

Fixed android device height issue
This commit is contained in:
uğur erdal 2019-01-23 12:32:50 +03:00 committed by GitHub
commit 02632255d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { Dimensions } from 'react-native';
import { Dimensions, Platform, StatusBar } from 'react-native';
export default {
// Primary Colors
@ -39,7 +39,10 @@ export default {
$tableBorderColor: '#1e2835',
// Devices Sizes
$deviceHeight: Dimensions.get('window').height,
$deviceHeight:
Platform.OS === 'ios'
? Dimensions.get('window').height
: Dimensions.get('window').height + StatusBar.currentHeight,
$deviceWidth: Dimensions.get('window').width,
// Fonts Properties

View File

@ -1,4 +1,4 @@
import { Dimensions } from 'react-native';
import { Dimensions, Platform, StatusBar } from 'react-native';
export default {
// Primary Colors
@ -39,7 +39,10 @@ export default {
$tableBorderColor: '#FFFFFF',
// Devices Sizes
$deviceHeight: Dimensions.get('window').height,
$deviceHeight:
Platform.OS === 'ios'
? Dimensions.get('window').height
: Dimensions.get('window').height + StatusBar.currentHeight,
$deviceWidth: Dimensions.get('window').width,
// Fonts Properties