import { SmartechPushProps } from "./smartechPushProps"; import { ConfigPlugin, createRunOncePlugin } from '@expo/config-plugins'; import withPushAndroid from "./withSmartechPushAndroid"; import withPushiOS from "./withSmartechPushiOS"; import { validateSmartechPushProps } from "./validateSmartechPushProps"; const withNetcorePush: ConfigPlugin = (config, props) => { validateSmartechPushProps(props); config = withPushAndroid(config, props); config = withPushiOS(config, props); return config; } //export default withNetcorePush; module.exports = withNetcorePush; const pkg = require("../package.json"); export default createRunOncePlugin(withNetcorePush, pkg.name, pkg.version);