@expo/react-native-action-sheet
Version:
A cross-platform ActionSheet for React Native
2 lines • 889 B
JavaScript
import _extends from"@babel/runtime/helpers/extends";var _jsxFileName="/home/runner/work/react-native-action-sheet/react-native-action-sheet/src/connectActionSheet.tsx";import hoistNonReactStatic from'hoist-non-react-statics';import*as React from'react';import{Consumer}from'./context';export default function connectActionSheet(WrappedComponent){var ConnectedActionSheet=function ConnectedActionSheet(props){return React.createElement(Consumer,{__source:{fileName:_jsxFileName,lineNumber:12,columnNumber:7}},function(_ref){var showActionSheetWithOptions=_ref.showActionSheetWithOptions;return React.createElement(WrappedComponent,_extends({},props,{showActionSheetWithOptions:showActionSheetWithOptions,__source:{fileName:_jsxFileName,lineNumber:15,columnNumber:13}}));});};return hoistNonReactStatic(ConnectedActionSheet,WrappedComponent);}
//# sourceMappingURL=connectActionSheet.js.map