@momo-kits/badge 0.157.2-test.1 → 0.158.1-beta.2
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/Badge.tsx +0 -2
- package/BadgeDot.tsx +0 -2
- package/BadgeRibbon.tsx +1 -2
- package/package.json +1 -1
package/Badge.tsx
CHANGED
|
@@ -8,11 +8,9 @@ import {
|
|
|
8
8
|
Colors,
|
|
9
9
|
Text,
|
|
10
10
|
useScaleSize,
|
|
11
|
-
useScreenRegistry,
|
|
12
11
|
} from '@momo-kits/foundation';
|
|
13
12
|
|
|
14
13
|
const Badge: FC<BadgeProps> = ({ label = 'Label', style, backgroundColor }) => {
|
|
15
|
-
useScreenRegistry('Badge');
|
|
16
14
|
const { theme } = useContext(ApplicationContext);
|
|
17
15
|
const scaledSize = useScaleSize(16);
|
|
18
16
|
|
package/BadgeDot.tsx
CHANGED
|
@@ -2,10 +2,8 @@ import React, {FC} from 'react';
|
|
|
2
2
|
import {View} from 'react-native';
|
|
3
3
|
import {BadgeDotProps} from './types';
|
|
4
4
|
import styles from './styles';
|
|
5
|
-
import {useScreenRegistry} from '@momo-kits/foundation';
|
|
6
5
|
|
|
7
6
|
const BadgeDot: FC<BadgeDotProps> = ({size = 'large', style}) => {
|
|
8
|
-
useScreenRegistry('BadgeDot');
|
|
9
7
|
const dotStyle = size === 'small' ? styles.dotSmall : styles.dot;
|
|
10
8
|
return <View style={[style, dotStyle]} />;
|
|
11
9
|
};
|
package/BadgeRibbon.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import {View} from 'react-native';
|
|
|
3
3
|
import {DownTail, UpTail} from './Shape';
|
|
4
4
|
import styles from './styles';
|
|
5
5
|
import {BadgeRibbonProps} from './types';
|
|
6
|
-
import {ApplicationContext, Colors, Image, Text
|
|
6
|
+
import {ApplicationContext, Colors, Image, Text} from '@momo-kits/foundation';
|
|
7
7
|
|
|
8
8
|
const BadgeRibbon: FC<BadgeRibbonProps> = ({
|
|
9
9
|
position = 'top_right',
|
|
@@ -11,7 +11,6 @@ const BadgeRibbon: FC<BadgeRibbonProps> = ({
|
|
|
11
11
|
isRound = false,
|
|
12
12
|
style = {},
|
|
13
13
|
}) => {
|
|
14
|
-
useScreenRegistry('BadgeRibbon');
|
|
15
14
|
const {theme} = useContext(ApplicationContext);
|
|
16
15
|
let ribbonRotate = '0deg';
|
|
17
16
|
let textRotate = '0deg';
|