@td-design/react-native
Version:
react-native UI组件库
21 lines • 704 B
JavaScript
import React from 'react';
import { ThemeProvider as ShopifyThemeProvider } from '@shopify/restyle';
import Notify from '../notify';
import Portal from '../portal';
import theme from '../theme';
import Toast from '../toast';
const {
lightTheme
} = theme;
const ThemeProvider = _ref => {
let {
theme = lightTheme,
children
} = _ref;
return /*#__PURE__*/React.createElement(ShopifyThemeProvider, {
theme: theme
}, /*#__PURE__*/React.createElement(Toast, null), /*#__PURE__*/React.createElement(Notify, null), /*#__PURE__*/React.createElement(Portal.Host, null, children));
};
ThemeProvider.displayName = 'ThemeProvider';
export default ThemeProvider;
//# sourceMappingURL=index.js.map