@chainplatform/layout 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/styles.js +2 -2
package/package.json
CHANGED
package/src/styles.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Dimensions } from 'react-native';
|
|
2
|
-
import mobileCheck from './
|
|
2
|
+
import mobileCheck from './DeviceDetect';
|
|
3
3
|
|
|
4
4
|
const DESKTOP = mobileCheck.isMobile ? false : true;
|
|
5
5
|
const entireScreenWidth = Dimensions.get('window').width;
|
|
6
6
|
const SCREEN_WIDTH = DESKTOP && entireScreenWidth >= 1440 ? 1440 : entireScreenWidth;
|
|
7
7
|
const screenWidth = DESKTOP ? Dimensions.get('window').width : 375;
|
|
8
8
|
const REM = entireScreenWidth / screenWidth;
|
|
9
|
-
const barHeight =
|
|
9
|
+
const barHeight = 59.75 * REM;
|
|
10
10
|
|
|
11
11
|
const sdkStyles = {
|
|
12
12
|
HEIGHT: Dimensions.get('window').height,
|