{"_id":"rnadspostx","_rev":"55-1357398980592c1e86339eb94f1b378f","time":{"created":"2023-01-05T15:45:45.487Z","0.1.0":"2022-12-31T08:49:07.511Z","modified":"2024-01-12T09:32:40.082Z","0.1.1":"2023-01-02T12:05:18.418Z","0.1.2":"2023-01-03T12:36:45.136Z","0.1.3":"2023-01-03T18:10:44.048Z","0.1.4":"2023-01-05T15:45:45.708Z","0.1.5":"2023-01-05T16:41:01.993Z","0.1.6":"2023-01-05T16:48:12.513Z","0.1.7":"2023-01-29T08:57:35.394Z","0.1.8":"2023-02-22T10:21:45.438Z","0.1.9":"2023-02-22T10:34:47.357Z","0.1.10":"2023-02-22T11:36:06.506Z","0.1.11":"2023-02-24T08:54:52.003Z","0.1.12":"2023-02-24T14:53:18.180Z","0.1.13":"2023-06-16T11:37:16.015Z","0.1.14":"2023-07-04T09:29:42.949Z","0.1.16":"2023-07-07T12:57:26.056Z","0.1.17":"2023-07-07T14:44:04.156Z","0.1.18":"2023-07-07T18:18:16.211Z","0.1.19":"2023-07-11T10:44:24.935Z","0.1.20":"2023-07-11T10:47:51.388Z","0.1.21":"2023-07-12T07:35:52.265Z","0.1.22":"2023-07-12T14:23:27.499Z","0.1.24":"2023-07-12T16:10:19.542Z","0.1.26":"2023-07-14T14:57:02.489Z","0.1.27":"2023-07-14T15:42:22.076Z","0.1.28":"2023-07-15T15:00:08.690Z","0.1.29":"2023-07-18T07:12:01.039Z","0.1.30":"2023-07-18T07:39:20.490Z","0.1.31":"2023-08-07T18:18:22.937Z","0.1.32":"2024-01-12T09:32:39.870Z"},"name":"rnadspostx","dist-tags":{"latest":"0.1.32"},"versions":{"0.1.28":{"name":"rnadspostx","version":"0.1.28","description":"rnadspostx package allows you to integrate adspostx offers in your react native app.","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/AdsPostX/rnadspostx.git"},"author":{"name":"AdsPostX Inc.","email":"help@adspostx.com","url":"https://github.com/AdsPostX"},"license":"MIT","bugs":{"url":"https://github.com/AdsPostX/rnadspostx/issues"},"homepage":"https://github.com/AdsPostX/rnadspostx#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@arkweid/lefthook":"^0.7.7","@commitlint/config-conventional":"^17.0.2","@react-native-community/eslint-config":"^3.0.2","@release-it/conventional-changelog":"^5.0.0","@types/jest":"^28.1.2","@types/react":"~17.0.21","@types/react-native":"0.70.0","commitlint":"^17.0.2","del-cli":"^5.0.0","eslint":"^8.4.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.4","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^4.5.2"},"resolutions":{"@types/react":"17.0.21"},"peerDependencies":{"react":"*","react-native":"*"},"engines":{"node":">= 16.0.0"},"packageManager":"^yarn@1.22.15","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"dependencies":{},"gitHead":"ddb2c50467eda096b8d962ab6b93dfe8a8362f4b","_id":"rnadspostx@0.1.28","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-m8IVXkYEnxWJJWVMEEkacEvOp7cLWMSMkYp+EvYYkLDFjJCWNVuaKIwpPOkMuZXXMaR7b1XEuht1qaqIsulqGw==","shasum":"a0a19951919561ee6091e8c9a62a7f043e0d2a93","tarball":"https://registry.npmjs.org/rnadspostx/-/rnadspostx-0.1.28.tgz","fileCount":46,"unpackedSize":98274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1i7/Eok6PSM0wIaYkXN2hVhgKiSIXvnge4tE7ug3kJQIhANcKY6rocoXGoHnJnIR/Hstst40bKLsVwUPWQ1WxPvwE"}]},"_npmUser":{"name":"adspostx.inc","email":"help@adspostx.com"},"directories":{},"maintainers":[{"name":"adspostx.inc","email":"help@adspostx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rnadspostx_0.1.28_1689433208414_0.24946876086997594"},"_hasShrinkwrap":false},"0.1.30":{"name":"rnadspostx","version":"0.1.30","description":"rnadspostx package allows you to integrate adspostx offers in your react native app.","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/AdsPostX/rnadspostx.git"},"author":{"name":"AdsPostX Inc.","email":"help@adspostx.com","url":"https://github.com/AdsPostX"},"license":"MIT","bugs":{"url":"https://github.com/AdsPostX/rnadspostx/issues"},"homepage":"https://github.com/AdsPostX/rnadspostx#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@arkweid/lefthook":"^0.7.7","@commitlint/config-conventional":"^17.0.2","@react-native-community/eslint-config":"^3.0.2","@release-it/conventional-changelog":"^5.0.0","@types/jest":"^28.1.2","@types/react":"~17.0.21","@types/react-native":"0.70.0","commitlint":"^17.0.2","del-cli":"^5.0.0","eslint":"^8.4.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.4","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^4.5.2"},"resolutions":{"@types/react":"17.0.21"},"peerDependencies":{"react":"*","react-native":"*"},"engines":{"node":">= 16.0.0"},"packageManager":"^yarn@1.22.15","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"dependencies":{},"gitHead":"873e7fb8b0664784bf48f3131d6c411f6b00d4c7","_id":"rnadspostx@0.1.30","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-w0p3Mz3PhJNnUVjiUI6g4fKiUgRFC0U+OseADMl1UzDWURwWm5U3YFFS6pSS5apYVKf3p05XmJqMn+d0xx5PXg==","shasum":"d866faaeec7b4359a5c80530601ae8f1fe58078f","tarball":"https://registry.npmjs.org/rnadspostx/-/rnadspostx-0.1.30.tgz","fileCount":46,"unpackedSize":98274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaZgCEfWXm16wVNN6Bj/Wckep7mMQz0VsNybyf21uh7QIhANWo/z68NZ3HfxNRC4j/5gvkq9hudbFA6ZmIZ2T+fEcB"}]},"_npmUser":{"name":"adspostx.inc","email":"help@adspostx.com"},"directories":{},"maintainers":[{"name":"adspostx.inc","email":"help@adspostx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rnadspostx_0.1.30_1689665960316_0.15378358384291824"},"_hasShrinkwrap":false},"0.1.31":{"name":"rnadspostx","version":"0.1.31","description":"rnadspostx package allows you to integrate adspostx offers in your react native app.","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/AdsPostX/rnadspostx.git"},"author":{"name":"AdsPostX Inc.","email":"help@adspostx.com","url":"https://github.com/AdsPostX"},"license":"MIT","bugs":{"url":"https://github.com/AdsPostX/rnadspostx/issues"},"homepage":"https://github.com/AdsPostX/rnadspostx#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@arkweid/lefthook":"^0.7.7","@commitlint/config-conventional":"^17.0.2","@react-native-community/eslint-config":"^3.0.2","@release-it/conventional-changelog":"^5.0.0","@types/jest":"^28.1.2","@types/react":"~17.0.21","@types/react-native":"0.70.0","commitlint":"^17.0.2","del-cli":"^5.0.0","eslint":"^8.4.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.4","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^4.5.2"},"resolutions":{"@types/react":"17.0.21"},"peerDependencies":{"react":"*","react-native":"*"},"engines":{"node":">= 16.0.0"},"packageManager":"^yarn@1.22.15","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"dependencies":{},"gitHead":"98be90031a093ff3ceba7008df2a3717bd0b18a4","_id":"rnadspostx@0.1.31","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-Tr8VDMZ5YtWfiP+or7UnP5spLFm3wChQWl4WwOBoGG1kHt9ERYWbOuUhEhtNeQhfyUT75VuMPhZHRrcG2JsS9Q==","shasum":"a976831b4a55440546538aece32a03a7d51588e8","tarball":"https://registry.npmjs.org/rnadspostx/-/rnadspostx-0.1.31.tgz","fileCount":46,"unpackedSize":98181,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4rFvrNfmZWw868onPrYIytA1sHQBeGnQV9baNwCp4gAiEA5QV+8SbdQnSZ3TIIghyoRq8sgk2v7URGtzMKJ0zRRZE="}]},"_npmUser":{"name":"adspostx.inc","email":"help@adspostx.com"},"directories":{},"maintainers":[{"name":"adspostx.inc","email":"help@adspostx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rnadspostx_0.1.31_1691432302622_0.9584819717229729"},"_hasShrinkwrap":false},"0.1.32":{"name":"rnadspostx","version":"0.1.32","description":"rnadspostx package allows you to integrate adspostx offers in your react native app.","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/AdsPostX/rnadspostx.git"},"author":{"name":"AdsPostX Inc.","email":"help@adspostx.com","url":"https://github.com/AdsPostX"},"license":"MIT","bugs":{"url":"https://github.com/AdsPostX/rnadspostx/issues"},"homepage":"https://github.com/AdsPostX/rnadspostx#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@arkweid/lefthook":"^0.7.7","@commitlint/config-conventional":"^17.0.2","@react-native-community/eslint-config":"^3.0.2","@release-it/conventional-changelog":"^5.0.0","@types/jest":"^28.1.2","@types/react":"~17.0.21","@types/react-native":"0.70.0","commitlint":"^17.0.2","del-cli":"^5.0.0","eslint":"^8.4.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.4","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^4.5.2"},"resolutions":{"@types/react":"17.0.21"},"peerDependencies":{"react":"*","react-native":"*"},"engines":{"node":">= 16.0.0"},"packageManager":"^yarn@1.22.15","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"dependencies":{},"gitHead":"98be90031a093ff3ceba7008df2a3717bd0b18a4","_id":"rnadspostx@0.1.32","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-zDZDZNQkHUpUwxldFigst5GPFtyBCmfmCqQHjNKuviz7oWfYAxCydlfDWoX7kYBh6vsYrnnDiBrHNN+Bk362Qw==","shasum":"34d4229e9efd3b3759fe0707476ba262cb348b1e","tarball":"https://registry.npmjs.org/rnadspostx/-/rnadspostx-0.1.32.tgz","fileCount":46,"unpackedSize":98181,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8dN4qLJe+7r7hXveoRLubyXN3FU2q2RlZVJh9IhpBOAIhAMOl49YQYOqaRpZSIw3OAvnMe4AgA8WJ8ljDvF8bKC4x"}]},"_npmUser":{"name":"adspostx.inc","email":"help@adspostx.com"},"directories":{},"maintainers":[{"name":"adspostx.inc","email":"help@adspostx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rnadspostx_0.1.32_1705051959738_0.9217513896804885"},"_hasShrinkwrap":false}},"maintainers":[{"name":"adspostx.inc","email":"help@adspostx.com"}],"description":"rnadspostx package allows you to integrate adspostx offers in your react native app.","homepage":"https://github.com/AdsPostX/rnadspostx#readme","keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/AdsPostX/rnadspostx.git"},"author":{"name":"AdsPostX Inc.","email":"help@adspostx.com","url":"https://github.com/AdsPostX"},"bugs":{"url":"https://github.com/AdsPostX/rnadspostx/issues"},"license":"MIT","readme":"# rnadspostx\n\nAdsPostX offers a react native package designed to help you integrate AdsPostX into your react native mobile application within minutes and start generating more revenue and increasing sales.\n\n## Installation\n\n```sh\nnpm install rnadspostx\n```\n\n## Usage\n\n1. Init AdsPostX:\n\n```js\n const sdkId = 'a359ddi39903994f';\n AdsPostXPlugin.init(sdkId, (response) => {\n     /* if response is true, mean init call is success.\n        otherwise you will get error with response.*/\n    }\n});\n```\n\n2. Load AdsPostX Offers:\n\n```js\nconst payload = { firstname: 'john', country: 'US' };\n\nAdsPostXPlugin.load((response) => {\n  /*\n    if response is 'true' mean offer loaded successfully,\n    else check 'error' field for error while loading offers.\n    */\n}, payload);\n```\n\n3. Show AdsPostX Offers:\n\n```js\n// values used here are just for demo purpose, use actual values when you are integrating SDK.\n\nconst showOptions = {\n  position: {\n    topMargin: 5.0,\n    rightMargin: 5.0,\n    bottomMargin: 5.0,\n    leftMargin: 5.0,\n  },\n  styles: {\n    transparent: true,\n    type: 'popup', // OR 'fullscreen',\n  },\n  callbacks: {\n    showCallback: () => {\n      console.log('Show callback called');\n    },\n    errorCallback: (event) => {\n      console.log('Error callback called:', event);\n    },\n    dismissCallback: () => {\n      console.log('Dismiss callback called');\n    },\n  },\n};\n\nAdsPostXPlugin.show(showOptions);\n```\n\n4. Get Offers\n\n```js\nconst sdkId = 'YOUR_SDK_ID';\nconst payload = {\n  country: 'USA',\n  firstname: 'Dev',\n  creative: '1',\n  dev: '1',\n};\n\ntry {\n  const responseData = await AdsPostXPlugin.getOffers(sdkId, payload);\n\n  // to access offers\n  if (responseData.status) {\n    const offers = responseData.response.data.offers;\n  }\n} catch (error) {\n  // Handle any errors that occurred during the getOffers call...\n}\n```\n\n5. Set Environment\n\n```js\nAdsPostXPlugin.setEnvironment(0); // for 'live' environment.\n\nOR;\n\nAdsPostXPlugin.setEnvironment(1); // for 'test' environment.\n```\n\n6. Set Debug Log\n\n```js\nAdsPostx.setDebugLog(true);\nOR;\nAdsPostx.setDebugLog(false);\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","readmeFilename":"README.md"}