@momo-kits/calendar 0.157.1-beta.3 → 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.
- package/HeaderControl.tsx +3 -1
- package/index.tsx +2 -0
- package/package.json +1 -1
package/HeaderControl.tsx
CHANGED
|
@@ -52,4 +52,6 @@ const HeaderControl: ForwardRefRenderFunction<
|
|
|
52
52
|
return <View />;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
const ForwardedHeaderControl = forwardRef(HeaderControl);
|
|
56
|
+
ForwardedHeaderControl.displayName = 'HeaderControl';
|
|
57
|
+
export default ForwardedHeaderControl;
|
package/index.tsx
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
Spacing,
|
|
16
16
|
Switch,
|
|
17
17
|
Text,
|
|
18
|
+
useScreenRegistry,
|
|
18
19
|
} from '@momo-kits/foundation';
|
|
19
20
|
import CalendarPro from './CalendarPro';
|
|
20
21
|
import TabHeader from './TabHeader';
|
|
@@ -26,6 +27,7 @@ const DOUBLE = 'doubleDate';
|
|
|
26
27
|
export const ContainerContext = createContext({ width: 0, height: 0 });
|
|
27
28
|
|
|
28
29
|
const Calendar: React.FC<CalendarProps> = props => {
|
|
30
|
+
useScreenRegistry('Calendar');
|
|
29
31
|
const { translate, theme } = useContext(ApplicationContext);
|
|
30
32
|
const scaledHeight48 = useScaleSize(48);
|
|
31
33
|
const scaledHeight34 = useScaleSize(34);
|