react-native-thanos-snap-animation
Version:
implement Thanos dust animation into react native
29 lines (28 loc) • 1.08 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "InfinityGauntlet", {
enumerable: true,
get: function () {
return _InfinityGauntlet.default;
}
});
exports.sayHello = sayHello;
require("./shim");
var _reactNative = require("react-native");
var _InfinityGauntlet = _interopRequireDefault(require("./components/InfinityGauntlet"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const LINKING_ERROR = `The package 'react-native-thanos-snap-animation' 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';
const ThanosSnapAnimation = _reactNative.NativeModules.ThanosSnapAnimation ? _reactNative.NativeModules.ThanosSnapAnimation : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
function sayHello() {
return ThanosSnapAnimation.sayHello();
}
//# sourceMappingURL=index.js.map
;