@chainplatform/layout 0.1.5 → 0.1.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/README.md +12 -12
- package/package.json +1 -1
- package/src/Landing.js +1 -1
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
#
|
|
2
|
-
@chainplatform/
|
|
1
|
+
# Chain Platform Layout
|
|
2
|
+
@chainplatform/layout is a React Native library implement for react-native and react-native-web.
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<a href="https://github.com/ChainPlatform/
|
|
5
|
+
<a href="https://github.com/ChainPlatform/react-native-layout/blob/HEAD/LICENSE">
|
|
6
6
|
<img src="https://img.shields.io/badge/license-MIT-blue.svg" />
|
|
7
7
|
</a>
|
|
8
|
-
<a href="https://www.npmjs.com/package/@chainplatform/
|
|
9
|
-
<img src="https://img.shields.io/npm/v/@chainplatform/
|
|
8
|
+
<a href="https://www.npmjs.com/package/@chainplatform/layout">
|
|
9
|
+
<img src="https://img.shields.io/npm/v/@chainplatform/layout?color=brightgreen&label=npm%20package" alt="Current npm package version." />
|
|
10
10
|
</a>
|
|
11
|
-
<a href="https://www.npmjs.com/package/@chainplatform/
|
|
12
|
-
<img src="https://img.shields.io/npm/dt/@chainplatform/
|
|
11
|
+
<a href="https://www.npmjs.com/package/@chainplatform/layout">
|
|
12
|
+
<img src="https://img.shields.io/npm/dt/@chainplatform/layout.svg"></img>
|
|
13
13
|
</a>
|
|
14
|
-
<a href="https://www.npmjs.com/package/@chainplatform/
|
|
14
|
+
<a href="https://www.npmjs.com/package/@chainplatform/layout">
|
|
15
15
|
<img src="https://img.shields.io/badge/platform-android%20%7C%20ios%20%7C%20web-blue"></img>
|
|
16
16
|
</a>
|
|
17
|
-
<a href="https://github.com/ChainPlatform/
|
|
17
|
+
<a href="https://github.com/ChainPlatform/react-native-layout/pulls">
|
|
18
18
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" />
|
|
19
19
|
</a>
|
|
20
20
|
<a href="https://twitter.com/intent/follow?screen_name=doansan">
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
|
|
25
25
|
### Install
|
|
26
26
|
```
|
|
27
|
-
npm install @chainplatform/
|
|
27
|
+
npm install @chainplatform/layout --save
|
|
28
28
|
```
|
|
29
29
|
or
|
|
30
30
|
```
|
|
31
|
-
yarn add @chainplatform/
|
|
31
|
+
yarn add @chainplatform/layout
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ yarn add @chainplatform/sdk
|
|
|
36
36
|
|
|
37
37
|
```js
|
|
38
38
|
import React from 'react';
|
|
39
|
-
import
|
|
39
|
+
import { getScreenLanding } from '@chainplatform/layout';
|
|
40
40
|
|
|
41
41
|
class App extends React.Component {
|
|
42
42
|
|
package/package.json
CHANGED
package/src/Landing.js
CHANGED
|
@@ -125,7 +125,7 @@ export function getScreenLanding(layoutWidth, isDesktop) {
|
|
|
125
125
|
numberwebinarChart = 2;
|
|
126
126
|
webinarPadding = setSize(15);
|
|
127
127
|
}
|
|
128
|
-
if (layoutWidth >= sdkStyles.split_desktop
|
|
128
|
+
if (layoutWidth >= sdkStyles.split_desktop) {
|
|
129
129
|
numberwebinarChart = 3;
|
|
130
130
|
webinarPadding = setSize(15);
|
|
131
131
|
}
|