@chainplatform/sdk 0.3.4 → 0.3.6

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/SDK/styles.js CHANGED
@@ -8,7 +8,7 @@ const screenWidth = DESKTOP ? Dimensions.get('window').width : 375;
8
8
  const REM = entireScreenWidth / screenWidth;
9
9
  const barHeight = DESKTOP ? (57 * REM) : (50 * REM);
10
10
 
11
- export default {
11
+ const sdkStyles = {
12
12
  HEIGHT: Dimensions.get('window').height,
13
13
  WIDTH: Dimensions.get('window').width,
14
14
  SCREEN_WIDTH: SCREEN_WIDTH,
@@ -132,6 +132,9 @@ export default {
132
132
  }
133
133
  }
134
134
 
135
- export function setSize(size) {
135
+ function setSize(size) {
136
136
  return size * REM;
137
- }
137
+ }
138
+
139
+ export default sdkStyles;
140
+ export { setSize };
@@ -1,5 +1,6 @@
1
- import * as mobileCheck from 'react-device-detect';
1
+ import * as mobiInfos from 'react-device-detect';
2
2
 
3
+ let mobileCheck = mobiInfos;
3
4
  let os = "browser";
4
5
  if (typeof window.APP_CONFIG != "undefined" && typeof window.APP_CONFIG.os != "undefined") {
5
6
  os = window.APP_CONFIG.os;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainplatform/sdk",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "@chainplatform/sdk is a React Native library implement for react-native and react-native-web. Require crypto-js and react-native-mmkv packages.",
5
5
  "main": "index.js",
6
6
  "devDependencies": {