native-base
Version:
Essential cross-platform UI components for React Native
13 lines • 491 B
JavaScript
import React from 'react';
export const ResponsiveQueryContext = /*#__PURE__*/React.createContext({
disableCSSMediaQueries: false
});
export const ResponsiveQueryProvider = props => {
const value = React.useMemo(() => ({
disableCSSMediaQueries: props.disableCSSMediaQueries
}), [props.disableCSSMediaQueries]);
return /*#__PURE__*/React.createElement(ResponsiveQueryContext.Provider, {
value: value
}, props.children);
};
//# sourceMappingURL=ResponsiveQueryProvider.js.map