react-native-sortables
Version:
Powerful Sortable Components for Flexible Content Reordering in React Native
31 lines (30 loc) • 783 B
JavaScript
;
import React from "react";
/* eslint-disable react/jsx-key */
import { SharedProvider } from '../shared';
import { ContextProviderComposer } from '../utils';
import { FlexLayoutProvider } from './FlexLayoutProvider';
import { jsx as _jsx } from "react/jsx-runtime";
export default function FlexProvider({
children,
strategy,
styleProps,
...sharedProps
}) {
const providers = [
/*#__PURE__*/
// Provider with common sortables functionality
_jsx(SharedProvider, {
...sharedProps
}),
/*#__PURE__*/
// Provider with flex layout calculations
_jsx(FlexLayoutProvider, {
...styleProps
})];
return /*#__PURE__*/_jsx(ContextProviderComposer, {
providers: providers,
children: children
});
}
//# sourceMappingURL=FlexProvider.js.map