react-native-full-calendars
Version:
React Native Full Calendar (RNFC) is an intuitive and powerful calendar component library designed for React Native.
20 lines (19 loc) • 598 B
JavaScript
;
import React from 'react';
import { useInitProps } from './hooks/useInitProps';
import { jsx as _jsx } from "react/jsx-runtime";
export const CalendarContext = /*#__PURE__*/React.createContext(null);
export const WithWrappedProvider = WrappedComponent => {
return /*#__PURE__*/React.forwardRef((_props, ref) => {
const props = useInitProps(_props);
return /*#__PURE__*/_jsx(CalendarContext.Provider, {
value: {
...props
},
children: /*#__PURE__*/_jsx(WrappedComponent, {
ref: ref
})
});
});
};
//# sourceMappingURL=store.js.map