{"_id":"@armpogart/nativescript-toasty","_rev":"2-851ca32ee3f239580e278d6b21e15395","name":"@armpogart/nativescript-toasty","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.1":{"name":"@armpogart/nativescript-toasty","version":"2.0.1","description":"NativeScript toast plugin","main":"toasty","typings":"index.d.ts","nativescript":{"platforms":{"android":"2.3.0","ios":"2.3.0"}},"scripts":{"tsc":"tsc -skipLibCheck","build":"npm i && tsc && npm run build.native","build.native":"node scripts/build-native.js","test.android":"npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch","test.ios":"npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch","tslint":"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"*demo*/platforms/**\"","plugin.link":"npm link && cd ../demo && npm link nativescript-geolocation && cd ../src","plugin.tscwatch":"npm run tsc -- -w","demo.ios":"npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles","demo.android":"npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles","ci.tslint":"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'","generate.typings.ios":"cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'","precommit":"lint-staged"},"repository":{"type":"git","url":"git+https://github.com/triniwiz/nativescript-toasty.git"},"keywords":["NativeScript","JavaScript","Android","iOS","toast"],"author":{"name":"Osei Fortune","email":"fortune.osei@yahoo.com"},"contributors":[{"name":"Brad Martin","email":"bradwaynemartin@gmail.com","url":"https://github.com/bradmartin"}],"bugs":{"url":"https://github.com/triniwiz/nativescript-toasty/issues"},"license":"MIT","homepage":"https://github.com/triniwiz/nativescript-toasty","devDependencies":{"tns-core-modules":"^5.4.2","tns-platform-declarations":"^5.4.2","lint-staged":"^8.2.1","husky":"^2.4.1","prettier":"~1.18.2","typescript":"~3.4.5","tslint":"5.17.0","prompt":"^1.0.0","rimraf":"^2.6.3","semver":"^5.6.0"},"dependencies":{},"lint-staged":{"*.{ts, js, json, scss, md, html, xml}":["tslint","prettier --write","git add"]},"_resolved":"","_integrity":"","_from":"file:armpogart-nativescript-toasty-2.0.1.tgz","_id":"@armpogart/nativescript-toasty@2.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-lL4a1txDgwLpp5BiZZ5VAxxGxfXhqyjY2RxM8dD1CQ8zBu2Fat6Mqluo29pGJoswlPwjVV10zBt7Hqa5QVqb1g==","shasum":"2fe4d755fadbdfa6d5d075d7ee92a041c831902a","tarball":"https://registry.npmjs.org/@armpogart/nativescript-toasty/-/nativescript-toasty-2.0.1.tgz","fileCount":5,"unpackedSize":9645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsHznCRA9TVsSAnZWagAAYlIP+wcD0nHwwugwaHEepIuu\nIorNum9TIOcx1jPmitkK8dDrB9tkJapYGP05ijlMkYiWiZv67plmtD7rLvce\n8tJhYFeT5uMAuUkkzAr/WLjijgf6T4pgvxHNJPbiI4rLd2xk84siQ4FNpr83\ndHu0hMFUzlGOFTw143U6xjj/cGW/4EE5U36OGowWzcinG3ZY8PI8OelFiPmE\npW8PieB0wX7rXHPKudNuPFDMjyp63p/+wxFvsvMHvaiW9maNDWGn5KT5ZWxW\n9zVVkJJbyw+QZDKcp/G0/he2RHGR93qNswNhq9iQmGqv7+7NX+o7/OsOdLCL\n11fAPSDddTKZvNXKsELyvm7eE0Ql8xDVGl2y6XivVZANz3wZYMSAF2sF7i6k\n7Q0ehMwTPVnXphKXbhvr28iAXpKW4v1mbDFykJSwtAoVcOLEsuWYaUstwz34\ntThALayvQFwmlFBivKBhAj2tgcWuQ2DKIPNzOEXhFQ8FcKRPULZ8SKrz/Ola\nFspDtIDrSaPxYzJKYtjCRx2x95a/zQdG6/pAVyuiV5zraoJyC6Fr5eON+GPH\nECcH06dvxn8GpbyEHVzXa3tUizOyUA2W4qZuw8BuusmgvnA3gyolYK+N1ArR\nbXSRqTRR3zfrqUsb6KF6tSTo1IUSydnoUggexrkEshdw+PTRXJJZAcq6nUCV\n+rSb\r\n=OW0W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfhB6/8upcBL+baxs1AOl2m6wDyLPf2vtJH/hI3aOpqQIhANnz88p26YUzNRlnkm6HNEY1UroCrE+r+qtHwicxMYzD"}]},"maintainers":[{"name":"armpogart","email":"armpogart@gmail.com"}],"_npmUser":{"name":"armpogart","email":"armpogart@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-toasty_2.0.1_1571847398983_0.7403153814497203"},"_hasShrinkwrap":false},"2.0.2":{"name":"@armpogart/nativescript-toasty","version":"2.0.2","description":"NativeScript toast plugin","main":"toasty","typings":"index.d.ts","nativescript":{"platforms":{"android":"2.3.0","ios":"2.3.0"}},"scripts":{"tsc":"tsc -skipLibCheck","build":"npm i && tsc && npm run build.native","build.native":"node scripts/build-native.js","test.android":"npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch","test.ios":"npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch","tslint":"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"*demo*/platforms/**\"","plugin.link":"npm link && cd ../demo && npm link nativescript-geolocation && cd ../src","plugin.tscwatch":"npm run tsc -- -w","demo.ios":"npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles","demo.android":"npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles","ci.tslint":"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'","generate.typings.ios":"cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'","precommit":"lint-staged"},"repository":{"type":"git","url":"git+https://github.com/triniwiz/nativescript-toasty.git"},"keywords":["NativeScript","JavaScript","Android","iOS","toast"],"author":{"name":"Osei Fortune","email":"fortune.osei@yahoo.com"},"contributors":[{"name":"Brad Martin","email":"bradwaynemartin@gmail.com","url":"https://github.com/bradmartin"}],"bugs":{"url":"https://github.com/triniwiz/nativescript-toasty/issues"},"license":"MIT","homepage":"https://github.com/triniwiz/nativescript-toasty","devDependencies":{"tns-core-modules":"^5.4.2","tns-platform-declarations":"^5.4.2","lint-staged":"^8.2.1","husky":"^2.4.1","prettier":"~1.18.2","typescript":"~3.4.5","tslint":"5.17.0","prompt":"^1.0.0","rimraf":"^2.6.3","semver":"^5.6.0"},"dependencies":{},"lint-staged":{"*.{ts, js, json, scss, md, html, xml}":["tslint","prettier --write","git add"]},"_resolved":"","_integrity":"","_from":"file:armpogart-nativescript-toasty-2.0.2.tgz","_id":"@armpogart/nativescript-toasty@2.0.2","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-9BtiK9sMagXIMVtAMx1n6e55yDWEN3aCrrey+E9gM1wQuRgexQCr+7SvtEotH2o/kDn7c07fagSIcoo5SdLt3g==","shasum":"e0b8d032cbf0061777f49369ea977c5c96e3aaf7","tarball":"https://registry.npmjs.org/@armpogart/nativescript-toasty/-/nativescript-toasty-2.0.2.tgz","fileCount":8,"unpackedSize":22324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsKfPCRA9TVsSAnZWagAA4SYP/ix5ZPnaIo44jjZ4fMdJ\n4pdzCDVF1bbiqrH5ipD/GHtNT9OS4oG+CE3UQ5Ef9WKOfkJDay/mXkjnGM2I\nLLxDgk0KlCtzUuIh5aIL2QFRnZfcZ+CmLAwxEfcj76LRciHTCIKBZU50hM8X\nbOmGU0WTl/d1mFJspceHRqw4KNxaZT2Stiqxa1N+NK4RK3bv3Rgb0qM5Fpp+\nWIjeXOPObvBQOe5FqHfTk+JBt+sOU7pfieKhFQqchQ5uwooWJ1LQ5EFyXX+W\nTuQoUN61eCvm1IQUNPob2NAjoyyuTUML2rbW49VnlBjwFsJa2mvZiX/paGxu\nzEDrL7CeAM24f7smPuyKvEBtBaEQA8PQeH3yJIL2qKJtR1m9434aTv2ne+ie\nTJRCHZhesllOg8l0ybK05jXCZaFSWsYTbxQ69hFuoLJUWqhfy7fEIH+fTxpA\ngADYM1HvQYg/oyaAnsbeGthx8dUTzAwrbCuxK1T0cqj3EU5ZmlUPMbgytdU9\n69GN4w+aKLkuOxyH9w0aT2/kNiqwo8VKoCN/xCk/qbnHLpsZPdST6yk2b2ew\ntgwENZQgZj5YWdqLGoIKMZ/tK4kWin7TZrHYBp076c8xVZMbOuEKvBUXXqt9\n2LbLauqp63LLcavyFZmehD9fbahePhnbQY5p5vD+yo8qfncQwG8yngbTDxqt\nTZSv\r\n=yvd6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB09oRCXli5W/9czRovHRTefNh1a4JJJGf9TFRJmc3x5AiEA6B6b//BR/MxbP6YMrbpXIwjb3jcvhGvxZ2y8sq00f3I="}]},"maintainers":[{"name":"armpogart","email":"armpogart@gmail.com"}],"_npmUser":{"name":"armpogart","email":"armpogart@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-toasty_2.0.2_1571858383232_0.9824936546671683"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-23T16:16:38.735Z","2.0.1":"2019-10-23T16:16:39.123Z","modified":"2022-04-04T15:33:30.871Z","2.0.2":"2019-10-23T19:19:43.367Z"},"maintainers":[{"name":"armpogart","email":"armpogart@gmail.com"}],"description":"NativeScript toast plugin","homepage":"https://github.com/triniwiz/nativescript-toasty","keywords":["NativeScript","JavaScript","Android","iOS","toast"],"repository":{"type":"git","url":"git+https://github.com/triniwiz/nativescript-toasty.git"},"contributors":[{"name":"Brad Martin","email":"bradwaynemartin@gmail.com","url":"https://github.com/bradmartin"}],"author":{"name":"Osei Fortune","email":"fortune.osei@yahoo.com"},"bugs":{"url":"https://github.com/triniwiz/nativescript-toasty/issues"},"license":"MIT","readme":"# NativeScript-Toasty\n\n[![npm](https://img.shields.io/npm/v/nativescript-toasty.svg)](https://www.npmjs.com/package/nativescript-toasty)\n[![npm](https://img.shields.io/npm/dt/nativescript-toasty.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-toasty)\n\n## Install\n\n`tns plugin add nativescript-toasty`\n\n## Usage\n\nTypeScript\n\n```js\nimport { Toasty } from 'nativescript-toasty';\n// Toasty accepts an object for customizing its behavior/appearance. The only REQUIRED value is `text` which is the message for the toast.\nconst toast = new Toasty({ text: 'Toast message' });\ntoast.show();\n\n// you can also chain the methods together and there's no need to create a reference to the Toasty instance with this approach\nnew Toasty({ text: 'Some Message' })\n  .setToastDuration(ToastDuration.LONG)\n  .setToastPosition(ToastPosition.BOTTOM)\n  .setTextColor(new Color('white'))\n  .setBackgroundColor('#ff9999')\n  .show();\n\n// or you can set the properties of the Toasty instance\nconst toasty = new Toasty({\n  text: 'Somethign something...',\n  position: ToastPosition.TOP,\n  android: { yAxisOffset: 100 },\n  ios: {\n    anchorView: someButton.ios, // must be the native iOS view instance (button, page, action bar, tabbar, etc.)\n    displayShadow: true,\n    shadowColor: '#fff000',\n    cornerRadius: 24\n  }\n});\n\ntoasty.duration = ToastDuration.SHORT;\ntoasty.textColor = '#fff';\ntoasty.backgroundColor = new Color('purple');\ntoasty.show();\n```\n\nJavaScript\n\n```js\nvar toasty = require('nativescript-toasty').Toasty;\nvar toast = new toasty({ text: 'Toast message' });\ntoast.show();\n```\n\n### API\n\n```typescript\n\n  constructor(opts: ToastyOptions);\n\n  position: ToastPosition;\n\n  duration: ToastDuration;\n\n  textColor: Color | string;\n\n  backgroundColor: Color | string;\n\n  /**\n   * Show the Toasty\n   */\n  show();\n\n  /**\n   * Cancels the Toasty\n   */\n  cancel();\n\n/**\n * Sets the Toast position.\n */\n  setToastPosition(value: ToastPosition): Toasty;\n\n/**\n * Sets the Toast duration.\n */\n  setToastDuration(value: ToastDuration): Toasty;\n\n/**\n  * Set the text color of the toast.\n  * @param value [Color | string] - Color of the string message.\n  */\n  setTextColor(value: Color | string): Toasty;\n\n/**\n  * Set the background color of the toast.\n  * @param value [Color |  string] - Color of the background.\n  * On Android this currently removes the default Toast rounded borders.\n  */\n  setBackgroundColor(value: Color | string): Toasty;\n```\n\n```typescript\nexport enum ToastDuration {\n  'SHORT',\n  'LONG'\n}\n\nexport enum ToastPosition {\n  'BOTTOM'\n  'CENTER'\n  'TOP'\n}\n\nexport interface ToastyOptions {\n  /**\n   * Message text of the Toast.\n   */\n  text: string;\n\n  /**\n   * Duration to show the Toast.\n   */\n  duration?: ToastDuration;\n\n  /**\n   * Position of the Toast.\n   */\n  position?: ToastPosition;\n\n  /**\n   * Text color of the Toast message.\n   */\n  textColor?: Color | string;\n\n  /**\n   * Background Color of the Toast.\n   */\n  backgroundColor?: Color | string;\n\n  /**\n   * Android specific configuration options.\n   */\n  android?: { yAxisOffset: number };\n\n  /**\n   * iOS Specific configuration options.\n   */\n  ios?: {\n    /**\n     * The native iOS view to anchor the Toast to.\n     */\n    anchorView?: any;\n\n    /**\n     * The number of lines to allow for the toast message.\n     */\n    messageNumberOfLines?: number;\n\n    /**\n     * The corner radius of the Toast.\n     */\n    cornerRadius?: number;\n\n    /**\n     * True to display a shadow for the Toast.\n     */\n    displayShadow?: boolean;\n\n    /**\n     * The color of the shadow. Only visible if `displayShadow` is true.\n     */\n    shadowColor?: Color | string;\n  };\n}\n```\n","readmeFilename":"README.md"}