react-native-drop-shadow
Version:
is a small and simple package that helps make your React Native app
27 lines (26 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DropShadow = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const NativeShadow = (0, _reactNative.requireNativeComponent)('DropShadow');
const LINKING_ERROR = `The package 'react-native-drop-shadow' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
ios: "- You have run 'pod install'\n",
default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
class DropShadow extends _react.default.Component {
render() {
if (NativeShadow == null) {
throw new Error(LINKING_ERROR);
}
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeShadow, {
...this.props
});
}
}
exports.DropShadow = DropShadow;
//# sourceMappingURL=DropShadow.android.js.map