@eslam-elmeniawy/react-native-common-components
Version:
Common `ReactNative` components packed in library for usage in projects.
21 lines (19 loc) • 501 B
JavaScript
;
// External imports.
import * as React from 'react';
import { Portal as PaperPortal } from 'react-native-paper';
// Types imports.
import { jsx as _jsx } from "react/jsx-runtime";
/**
* Wrapper around react-native-paper Portal for testability.
* This can be mocked in tests while maintaining the same API.
*/
const Portal = ({
children
}) => {
return /*#__PURE__*/_jsx(PaperPortal, {
children: children
});
};
export default Portal;
//# sourceMappingURL=PaperPortal.js.map