@momo-kits/slider 0.157.1-test.1 → 0.157.2-test.1

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.
Files changed (3) hide show
  1. package/Label.tsx +3 -1
  2. package/index.tsx +3 -1
  3. package/package.json +1 -1
package/Label.tsx CHANGED
@@ -30,4 +30,6 @@ const Label: ForwardRefRenderFunction<LabelRef, ViewProps> = (props, ref) => {
30
30
  );
31
31
  };
32
32
 
33
- export default forwardRef(Label);
33
+ const ForwardedLabel = forwardRef(Label);
34
+ ForwardedLabel.displayName = 'Label';
35
+ export default ForwardedLabel;
package/index.tsx CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  useWidthLayout,
28
28
  } from './hooks';
29
29
  import {clamp, getValueForPosition, isLowCloser} from './helpers';
30
- import {ApplicationContext, Radius, Shadow} from '@momo-kits/foundation';
30
+ import {ApplicationContext, Radius, Shadow, useScreenRegistry} from '@momo-kits/foundation';
31
31
 
32
32
  const trueFunc = () => true;
33
33
  const falseFunc = () => false;
@@ -134,6 +134,7 @@ const Slider: React.FC<SliderProps> = memo(
134
134
  onSliderTouchEnd,
135
135
  ...restProps
136
136
  }) => {
137
+ useScreenRegistry('Slider');
137
138
  const {theme} = useContext(ApplicationContext);
138
139
 
139
140
  const {inPropsRef, inPropsRefPrev, setLow, setHigh} = useLowHigh(
@@ -450,4 +451,5 @@ const Slider: React.FC<SliderProps> = memo(
450
451
  }
451
452
  );
452
453
 
454
+ Slider.displayName = 'Slider';
453
455
  export {Slider};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/slider",
3
- "version": "0.157.1-test.1",
3
+ "version": "0.157.2-test.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {