@momo-kits/badge 0.81.19 → 0.81.20

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/BadgeRibbon.tsx CHANGED
@@ -99,7 +99,7 @@ const BadgeRibbon: FC<BadgeRibbonProps> = ({
99
99
  source={{
100
100
  uri: 'https://static.momocdn.net/app/img/kits/utils/Tail_4x.png',
101
101
  }}
102
- style={{width: 8, height: 16}}
102
+ style={styles.skew}
103
103
  />
104
104
  </View>
105
105
  );
package/Shape.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import Svg, {G, Path} from 'react-native-svg';
3
2
  import {Image} from '@momo-kits/foundation';
3
+ import styles from './styles';
4
4
 
5
5
  const UpTail = () => {
6
6
  return (
@@ -9,11 +9,7 @@ const UpTail = () => {
9
9
  source={{
10
10
  uri: 'https://static.momocdn.net/app/img/kits/utils/Head_down_4x.png',
11
11
  }}
12
- style={{
13
- width: 5,
14
- height: 20,
15
- transform: [{rotate: '180deg'}],
16
- }}
12
+ style={[styles.tail, {transform: [{rotate: '180deg'}]}]}
17
13
  />
18
14
  );
19
15
  };
@@ -25,7 +21,7 @@ const DownTail = () => {
25
21
  source={{
26
22
  uri: 'https://static.momocdn.net/app/img/kits/utils/Head_4x.png',
27
23
  }}
28
- style={{width: 5, height: 20}}
24
+ style={styles.tail}
29
25
  />
30
26
  );
31
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/badge",
3
- "version": "0.81.19",
3
+ "version": "0.81.20",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {
@@ -14,4 +14,4 @@
14
14
  },
15
15
  "license": "MoMo",
16
16
  "dependencies": {}
17
- }
17
+ }
package/styles.ts CHANGED
@@ -52,4 +52,6 @@ export default StyleSheet.create({
52
52
  color: Colors.black_01,
53
53
  fontWeight: 'bold',
54
54
  },
55
+ skew: {width: 8, height: 16},
56
+ tail: {width: 5, height: 20},
55
57
  });