{"_id":"@ammarahmed/nativescript-webview","_rev":"9-24fdbbfd0d8a9c6e2201d22036b123b3","name":"@ammarahmed/nativescript-webview","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"@ammarahmed/nativescript-webview","version":"1.0.0","description":"Add a plugin description","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.0","gitHead":"77e7549d1cfff66edaacd97dca57d5155c3b719d","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-5kNgDtfhDLWOO/oZW5dLqPE1Gobxx9e0cLU0tEbozWLxS6R9cGHGiBfn2/Zl9XH0meo5beIxRxbeL/ZOXEyDJw==","shasum":"0f7b2bfb60281a2df06a94208a2f15ca23b97112","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.0.tgz","fileCount":20,"unpackedSize":83942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE9gOV9gLUUG7SULSJ7eWMfje23E/jiVEcbDUuslQCYTAiBrAsX+fw4SmifWs6VHNRuWU8QcYqwC1qZdMOhESIjEqw=="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.0_1704016673057_0.9539701562214005"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ammarahmed/nativescript-webview","version":"1.0.1","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.1","gitHead":"77e7549d1cfff66edaacd97dca57d5155c3b719d","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-wjM2uqllObxDUom/kPs8/EUxFIxrUIVeRFPow9737cPYqZPzQ0QS0zmujtJEKwgnWWjzAJMXGl3pArTojKYBXQ==","shasum":"23acc8d1bcd1fd167b0d035cfc1a469a70a2ad37","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.1.tgz","fileCount":20,"unpackedSize":84067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUuU86sMzSGRVhPQBa+auGI1GsqcBb81xlMY4sAbAoCAiAwMeMkYV5bGIIoBdYb15uDWfKEExUPhpAO4cQ0l6gWzQ=="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.1_1704016786081_0.7457026653489343"},"_hasShrinkwrap":false},"1.0.2":{"name":"@ammarahmed/nativescript-webview","version":"1.0.2","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.2","gitHead":"6b66ba51b3ed4906c2777a6c12dbe82aa75ecffe","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-RqpILJ5/EbxHA9XPTfIgpozKf7Nr6dCUix6smTNTVsucGt7uyc70L9Tfv+edQcwacc2csVibxJNirrMqjeCqZA==","shasum":"d92210f4cac953bbf47f6189d895e169ce61c270","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.2.tgz","fileCount":20,"unpackedSize":84149,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCv+cGY/DpNlB+Te6XNIoAJCLMxFJ/my5315/50mis4iwIhANRsyqkMe5q43Go9o2NvDuHGg0rDuZxdFBVvtQ1lps9t"}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.2_1704017006197_0.027366083666236607"},"_hasShrinkwrap":false},"1.0.3":{"name":"@ammarahmed/nativescript-webview","version":"1.0.3","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.3","gitHead":"977e73fd079544c63fe291353d559b56fc64ef0f","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-oJbE8IN0cU0FYgZOETHK5AndCBdylkXqtFzbZ+MwGUxG8iGsgcUsQiZhOFmofM9Sr7sNrrkEr9+Nm+5m68QjlQ==","shasum":"2ca463e1beb32508806b252ee78bc8af9a9d4f4c","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.3.tgz","fileCount":20,"unpackedSize":84149,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClHiHFtd5ax8sh9XclbiEpmnTnGexBTxN4k7onI9KYGAiEAnr7sS0lsKpWzajORTBfAhaem754vPHCQRP5xXJgjK80="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.3_1704020320945_0.41198570622491415"},"_hasShrinkwrap":false},"1.0.4":{"name":"@ammarahmed/nativescript-webview","version":"1.0.4","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.4","gitHead":"58f13ef037d40cd3a33fe3b00951fd7342b20220","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-WYORTNIVLOjVTAwsF4W8MQPYjR48jk8OfSkjW6qsMwTqLZhucCy/v2morx7BwhqwDRvh6G8LnOUZz4wE6HFi7g==","shasum":"391efbf56f44adbdad798d196e7ee31c2d44642b","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.4.tgz","fileCount":20,"unpackedSize":84137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmyvw3iM8azOgABivW9ZyIuXY5ziEMGONb3sVjwLZUtAiBISZJcHNoG10LIn0TsU6XC5jhWt9SfxNLfMOKqnZYVBQ=="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.4_1704020466048_0.13262565023692208"},"_hasShrinkwrap":false},"1.0.5":{"name":"@ammarahmed/nativescript-webview","version":"1.0.5","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.5","gitHead":"58f13ef037d40cd3a33fe3b00951fd7342b20220","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-+mWfQNp6oe5i4EEUUM3am0qkieXDFn+HEkwYbPT9VXXV9282c0PMc8vB4Tznd6sW2MKfVBIYs3we1YoRP024EQ==","shasum":"12e0840167c668bba8a7d7a7a87e17b830beba21","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.5.tgz","fileCount":20,"unpackedSize":84123,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAzh8oPmEU7qbqBmFaMdgKey6QzAz5hVehhab57cdtjAiEA/XI1MlBj1B/GKsQkN3aZF0YXO9FNbW5dZaFJ5FxzUGI="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.5_1704027487830_0.07291707116835244"},"_hasShrinkwrap":false},"1.0.6":{"name":"@ammarahmed/nativescript-webview","version":"1.0.6","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.6","gitHead":"9ba74d4e41f8ab3c7c9e5309757ad7948f1d5647","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-UiEelzp9XjY9eoK5SJroZ8QZeQhYk6jEgSDT1UwtHBC4OhQb7Jg9Suod9NUDmUzwpkMqeGyvtFhWlO6zTKcbYg==","shasum":"7645651781f4ad11f9260e5d790ad793dc8d5627","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.6.tgz","fileCount":20,"unpackedSize":84126,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEoptx81AEh4F8n92giAbrimQWrLa35WTN6UDMOZNsIqAiEAhaQg8mPdGrKKGqysfsVjJodLq6CGBrdZwgNY7m5az2g="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.6_1704115579083_0.9068445942899259"},"_hasShrinkwrap":false},"1.0.7":{"name":"@ammarahmed/nativescript-webview","version":"1.0.7","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.7","gitHead":"d4dadb630f01f974c3fa15faba9097f82d902cda","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-B7zD42gRvP0aSRvi/2ALxsKld/3BU0W1NsCDBZ1FzllCJUGQJK2Op0WWUBTjACtWkTmN7ljBNDzxyRGWt2hgdg==","shasum":"547915c93a3790411452c8d0fd970646735c00a5","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.7.tgz","fileCount":20,"unpackedSize":89230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8XZzXJAIMMFlX68pa381vSMctHOck97L1yH2Bcl11RwIgPZjDik7189fMT/77aBdRml9n+Ufs+JtnPVV55Z9qz2Y="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.7_1704475044990_0.7263298876424875"},"_hasShrinkwrap":false},"1.0.8":{"name":"@ammarahmed/nativescript-webview","version":"1.0.8","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-plugins","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","_id":"@ammarahmed/nativescript-webview@1.0.8","gitHead":"d4dadb630f01f974c3fa15faba9097f82d902cda","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-bIIeYt7RDb1nZ+JbWW1epBY9MP+1lVvVO/EXFhApSbxPonRoyPEsz7H7r/KEzdigoAf9FAkNlNS7P8sDq268qQ==","shasum":"c388da243f0bffb102db3e0c118e33365445b648","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.8.tgz","fileCount":20,"unpackedSize":88802,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZQOgD6rrQfJ+VpCY58T9BDlzwos1JOO1AWhTc7uxRUAiEA615XVk5jaT5mHMYExzpnrL7HZKyE1Fy+nyerojRfEXM="}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.8_1704475092955_0.8028848656908707"},"_hasShrinkwrap":false},"1.0.9":{"name":"@ammarahmed/nativescript-webview","version":"1.0.9","description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","main":"index","typings":"index.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-webview.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-webview/issues"},"license":"Apache-2.0","homepage":"https://github.com/ammarahm-ed/nativescript-webview","bootstrapper":"@nativescript/plugin-seed","peerDependencies":{"@nativescript/core":"*","@open-native/core":"*","react-native-webview":"13.6.3"},"types":"./index.d.d.ts","gitHead":"f86b524c0610a6118dc2fabe07e510041048d7dd","_id":"@ammarahmed/nativescript-webview@1.0.9","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-iNUmpcBarEw+Xv4Zezkm7HffEWaFodhv1eENHLynHEXQ6Eabrq17vPCGRBN5jV3i2Ok2x/vltZ6nNAq6otNuIQ==","shasum":"9e84ed55f6bb42aec24a1630a8edbcd790140096","tarball":"https://registry.npmjs.org/@ammarahmed/nativescript-webview/-/nativescript-webview-1.0.9.tgz","fileCount":20,"unpackedSize":88802,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6jXjFO3nFAH+vepptTpUrMbscy6oOqBU6g22pGZn3+wIhAODsizVMPB2fNcxrO1hW/+dsFiQHuT3gr05Mrb+Tqq3A"}]},"_npmUser":{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"},"directories":{},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-webview_1.0.9_1706115230118_0.9840961422339003"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-31T09:57:52.930Z","1.0.0":"2023-12-31T09:57:53.245Z","modified":"2024-01-24T16:53:50.495Z","1.0.1":"2023-12-31T09:59:46.249Z","1.0.2":"2023-12-31T10:03:26.377Z","1.0.3":"2023-12-31T10:58:41.214Z","1.0.4":"2023-12-31T11:01:06.228Z","1.0.5":"2023-12-31T12:58:08.003Z","1.0.6":"2024-01-01T13:26:19.294Z","1.0.7":"2024-01-05T17:17:25.206Z","1.0.8":"2024-01-05T17:18:13.161Z","1.0.9":"2024-01-24T16:53:50.299Z"},"maintainers":[{"name":"ammarahm-ed","email":"ammarahmed6506@gmail.com"}],"description":"A NativeScript webview plugin that wraps the popular react-native-webview library using Open Native.","homepage":"https://github.com/ammarahm-ed/nativescript-webview","keywords":["NativeScript","JavaScript","TypeScript","iOS","Android","ReactNative","WebView","Browser"],"repository":{"type":"git","url":"git+https://github.com/ammarahm-ed/nativescript-webview.git"},"author":{"name":"Ammar Ahmed","email":"ammarahmed6506@protonmail.com"},"bugs":{"url":"https://github.com/ammarahm-ed/nativescript-webview/issues"},"license":"Apache-2.0","readme":"# @ammarahmed/nativescript-webview\n\nA NativeScript webview plugin that wraps the popular [react-native-webview](https://github.com/react-native-webview/react-native-webview) library using [Open Native](https://github.com/OpenNative). Seemlessly integrate web content into your NativeScript applications using the robust and feature rich WebView library.\n\n<img src=\"https://github.com/ammarahm-ed/nativescript-plugins/blob/main/packages/nativescript-webview/screenshot.png\" />\n\n## Installation\n\n```bash\nnpm install @open-native/core @ammarahmed/nativescript-webview react-native-webview\n```\nMake sure to set up `@open-native/core` in your project following the [Open Native Getting Started](https://open-native.org) guide.\n\n## Usage\n\n### Core\n\n1. Register the plugin namespace with Page's `xmlns` attribute providing your prefix( `ui`, for example).\n\n```xml\n<Page xmlns:ui=\"@ammarahmed/nativescript-webview\">\n```\n\n2. Access the `WebView` view through the prefix.\n\n```xml\n<Page xmlns=\"http://schemas.nativescript.org/tns.xsd\" xmlns:ui=\"@ammarahmed/nativescript-webview\">\n    <ui:WebView source=\"{{ source }}\"/>\n</Page>\n```\n---\n\n### Angular\n\n1. Add `NativeScriptWebViewModule` to the module imports where you want to use the view.\n\n```typescript\nimport { NativeScriptWebViewModule } from '@ammarahmed/nativescript-webview/angular';\nimports: [NativeScriptWebViewModule];\n```\n\n2. Use the view in HTML.\n\n```xml\n<NSWebView [source]=\"source\"></NSWebView>\n```\n---\n\n### Vue\n\n1. Register the view in the `app.ts` file. \n```ts\nimport { registerElement } from 'nativescript-vue';\n\nregisterElement(\"NSWebView\", ()=> require(\"@ammarahmed/nativescript-webview\").NSWebView)\n```\n2. Use the view in a `.vue` file.\n\n```xml\n<NSWebView :source=\"source\" />\n```\n---\n\n# Reference\n\nThis document lays out the current public properties and methods for the NativeScript WebView. This is mostly based on the original [react-native-webview API reference](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md) with some small differences.\n\n### `source`\n\nLoads static HTML or a URI (with optional headers) in the WebView. Note that static HTML will require setting [`originWhitelist`](README.md#originwhitelist) to `[\"*\"]`.\n\nThe object passed to `source` can have either of the following shapes:\n\n**Load uri**\n\n- `uri` (string) - The URI to load in the `WebView`. Can be a local or remote file, and can be changed with React state or props to navigate to a new page.\n- `method` (string) - The HTTP Method to use. Defaults to GET if not specified. On Android and Windows, the only supported methods are GET and POST.\n- `headers` (object) - Additional HTTP headers to send with the request. On Android, this can only be used with GET requests. See the [Guide](Guide.md#setting-custom-headers) for more information on setting custom headers.\n- `body` (string) - The HTTP body to send with the request. This must be a valid UTF-8 string, and will be sent exactly as specified, with no additional encoding (e.g. URL-escaping or base64) applied. On Android and Windows, this can only be used with POST requests.\n\n**Local files**\n\nPlace the files you want to load in app's `assets` folder. Then pass in the path to your file as URI:\n\n```js\n// Android\n`file:///android_asset/app/assets/path/to/your/html/file.html` // iOS\n` app/assets/path/to/your/file.html`;\n```\n\n**Static HTML**\n\n_Note that using static HTML requires the WebView property [originWhiteList](README.md#originWhiteList) to `['*']`. For some content, such as video embeds (e.g. Twitter or Facebook posts with video), the baseUrl needs to be set for the video playback to work_\n\n- `html` (string) - A static HTML page to display in the WebView.\n- `baseUrl` (string) - The base URL to be used for any relative links in the HTML. This is also used for the origin header with CORS requests made from the WebView. See [Android WebView Docs](https://developer.android.com/reference/android/webkit/WebView#loadDataWithBaseURL)\n\n| Type   | Required |\n| ------ | -------- |\n| object | No       |\n\n---\n\n### `automaticallyAdjustContentInsets`\n\nControls whether to adjust the content inset for web views that are placed behind a navigation bar, tab bar, or toolbar. The default value is `true`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | iOS      |\n\n---\n\n### `automaticallyAdjustsScrollIndicatorInsets`\n\nControls whether to adjust the scroll indicator inset for web views that are placed behind a navigation bar, tab bar, or toolbar. The default value `false`. (iOS 13+)\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | iOS(13+) |\n\n---\n\n### `injectedJavaScript`\n\nSet this to provide JavaScript that will be injected into the web page after the document finishes loading, but before other subresources finish loading.\n\nMake sure the string evaluates to a valid type (`true` works) and doesn't otherwise throw an exception.\n\nOn iOS, see [`WKUserScriptInjectionTimeAtDocumentEnd`](https://developer.apple.com/documentation/webkit/wkuserscriptinjectiontime/wkuserscriptinjectiontimeatdocumentend?language=objc). Be sure\nto set an [`onMessage`](README.md#onmessage) handler, even if it's a no-op, or the code will not be run.\n\n| Type   | Required | Platform     |\n| ------ | -------- | ------------ |\n| string | No       | iOS, Android |\n\n---\n\n### `injectedJavaScriptBeforeContentLoaded`\n\nSet this to provide JavaScript that will be injected into the web page after the document element is created, but before other subresources finish loading.\n\nMake sure the string evaluates to a valid type (`true` works) and doesn't otherwise throw an exception.\n\nOn iOS, see [`WKUserScriptInjectionTimeAtDocumentStart`](https://developer.apple.com/documentation/webkit/wkuserscriptinjectiontime/wkuserscriptinjectiontimeatdocumentstart?language=objc)\n\n> **Warning**\n> On Android, this may work, but it is not 100% reliable (see [#1609](https://github.com/react-native-webview/react-native-webview/issues/1609) and [#1099](https://github.com/react-native-webview/react-native-webview/pull/1099)). Consider `injectedJavaScriptObject` instead.\n\n| Type   | Required | Platform                           |\n| ------ | -------- | ---------------------------------- |\n| string | No       | iOS, Android (experimental) |\n\nTo learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.\n\n---\n\n### `injectedJavaScriptForMainFrameOnly`\n\nIf `true` (default; mandatory for Android), loads the `injectedJavaScript` only into the main frame.\n\nIf `false`, (only supported on iOS), loads it into all frames (e.g. iframes).\n\n| Type | Required | Platform                                          |\n| ---- | -------- | ------------------------------------------------- |\n| bool | No       | iOS (only `true` supported for Android) |\n\n---\n\n### `injectedJavaScriptBeforeContentLoadedForMainFrameOnly`\n\nIf `true` (default; mandatory for Android), loads the `injectedJavaScriptBeforeContentLoaded` only into the main frame.\n\nIf `false`, (only supported on iOS), loads it into all frames (e.g. iframes).\n\n| Type | Required | Platform                                          |\n| ---- | -------- | ------------------------------------------------- |\n| bool | No       | iOS (only `true` supported for Android) |\n\n---\n\n### `injectedJavaScriptObject`\n\nInject any JavaScript object into the webview so it is available to the JS running on the page.\n\n| Type | Required | Platform     |\n| ---- | -------- | ------------ |\n| obj  | No       | Android only |\n\nExample:\n\nSet a value to be used in JavaScript.\n\nNote: Any value in the object will be accessible to _all_ frames of the webpage. If sensitive values are present please ensure that you have a strict Content Security Policy set up to avoid data leaking.\n\nYou can access the object in the webview using `window.ReactNativeWebView.injectedObject`.\n\n```js\nwindow.ReactNativeWebView.injectedObjectJson();\n```\n\n---\n\n### `mediaPlaybackRequiresUserAction`\n\nBoolean that determines whether HTML5 audio and video requires the user to tap them before they start playing. The default value is `true`. (Android API minimum version 17).\n\nNOTE: the default `true` value might cause some videos to hang loading on iOS. Setting it to `false` could fix this issue.\n\n| Type | Required | Platform            |\n| ---- | -------- | ------------------- |\n| bool | No       | iOS, Android |\n\n---\n\n### `originWhitelist`\n\nList of origin strings to allow being navigated to. The strings allow wildcards and get matched against _just_ the origin (not the full URL). If the user taps to navigate to a new page but the new page is not in this whitelist, the URL will be handled by the OS. The default whitelisted origins are \"http://_\" and \"https://_\".\n\n| Type             | Required | Platform     |\n| ---------------- | -------- | ------------ |\n| array of strings | No       | iOS, Android |\n\n---\n\n### `scalesPageToFit`\n\nBoolean that controls whether the web content is scaled to fit the view and enables the user to change the scale. The default value is `true`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `decelerationRate`\n\nA floating-point number that determines how quickly the scroll view decelerates after the user lifts their finger. You may also use the string shortcuts `\"normal\"` and `\"fast\"` which match the underlying iOS settings for `UIScrollViewDecelerationRateNormal` and `UIScrollViewDecelerationRateFast` respectively:\n\n- normal: 0.998\n- fast: 0.99 (the default for iOS web view)\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| number | No       | iOS      |\n\n---\n\n### `domStorageEnabled`\n\nBoolean value to control whether DOM Storage is enabled. Used only in Android.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `javaScriptEnabled`\n\nBoolean value to enable JavaScript in the `WebView`. The default value is `true`.\n\n| Type | Required |\n| ---- | -------- |\n| bool | No       |\n\n---\n\n### `javaScriptCanOpenWindowsAutomatically`\n\nA Boolean value indicating whether JavaScript can open windows without user interaction. The default value is `false`.\n\n| Type | Required |\n| ---- | -------- |\n| bool | No       |\n\n---\n\n### `androidLayerType`\n\nSpecifies the layer type.\n\nPossible values for `androidLayerType` are:\n\n- `none` (default) - The view does not have a layer.\n- `software` - The view has a software layer. A software layer is backed by a bitmap and causes the view to be rendered using Android's software rendering pipeline, even if hardware acceleration is enabled.\n- `hardware` - The view has a hardware layer. A hardware layer is backed by a hardware specific texture and causes the view to be rendered using Android's hardware rendering pipeline, but only if hardware acceleration is turned on for the view hierarchy.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | Android  |\n\n---\n\n### `mixedContentMode`\n\nSpecifies the mixed content mode. i.e WebView will allow a secure origin to load content from any other origin.\n\nPossible values for `mixedContentMode` are:\n\n- `never` (default) - WebView will not allow a secure origin to load content from an insecure origin.\n- `always` - WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.\n- `compatibility` - WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | Android  |\n\n---\n\n### `thirdPartyCookiesEnabled`\n\nBoolean value to enable third party cookies in the `WebView`. Used on Android Lollipop and above only as third party cookies are enabled by default on Android Kitkat and below and on iOS. The default value is `true`. For more on cookies, read the [Guide](Guide.md#Managing-Cookies)\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `userAgent`\n\nSets the user-agent for the `WebView`.\n\n| Type   | Required | Platform     |\n| ------ | -------- | ------------ |\n| string | No       | iOS, Android |\n\n---\n\n### `applicationNameForUserAgent`\n\nAppend to the existing user-agent. Setting `userAgent` will override this.\n\n| Type   | Required | Platform     |\n| ------ | -------- | ------------ |\n| string | No       | iOS, Android |\n\n### `allowsFullscreenVideo`\n\nBoolean that determines whether videos are allowed to be played in fullscreen. The default value is `false`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `allowsInlineMediaPlayback`\n\nBoolean that determines whether HTML5 videos play inline or use the native full-screen controller. The default value is `false`.\n\n> **NOTE**\n>\n> In order for video to play inline, not only does this property need to be set to `true`, but the video element in the HTML document must also include the `webkit-playsinline` attribute.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | iOS      |\n\n---\n\n### `allowsAirPlayForMediaPlayback`\n\nA Boolean value indicating whether AirPlay is allowed. The default value is `false`.\n\n| Type    | Required | Platform      |\n| ------- | -------- | ------------- |\n| boolean | No       | iOS |\n\n---\n\n### `bounces`\n\nBoolean value that determines whether the web view bounces when it reaches the edge of the content. The default value is `true`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | iOS      |\n\n---\n\n### `overScrollMode`\n\nSpecifies the over scroll mode.\n\nPossible values for `overScrollMode` are:\n\n- `always` (default) - Always allow a user to over-scroll this view, provided it is a view that can scroll.\n- `content` - Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll.\n- `never` - Never allow a user to over-scroll this view.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | Android  |\n\n---\n\n### `contentInset`\n\nThe amount by which the web view content is inset from the edges of the scroll view. Defaults to {top: 0, left: 0, bottom: 0, right: 0}.\n\n| Type                                                               | Required | Platform |\n| ------------------------------------------------------------------ | -------- | -------- |\n| object: {top: number, left: number, bottom: number, right: number} | No       | iOS      |\n\n---\n\n### `contentInsetAdjustmentBehavior`\n\nThis property specifies how the safe area insets are used to modify the content area of the scroll view. The default value of this property is \"never\". Available on iOS 11 and later. Defaults to `never`.\n\nPossible values:\n\n- `automatic`\n- `scrollableAxes`\n- `never`\n- `always`\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | iOS      |\n\n---\n\n### `contentMode`\n\nControls the type of content to load. Available on iOS 13 and later. Defaults to `recommended`, which loads mobile content on iPhone & iPad Mini but desktop content on larger iPads.\n\nSee [Introducing Desktop-class Browsing on iPad](https://developer.apple.com/videos/play/wwdc2019/203/) for more.\n\nPossible values:\n\n- `recommended`\n- `mobile`\n- `desktop`\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | iOS      |\n\n---\n\n### `dataDetectorTypes`\n\nDetermines the types of data converted to clickable URLs in the web view's content. By default only phone numbers are detected.\n\nYou can provide one type or an array of many types.\n\nPossible values for `dataDetectorTypes` are:\n\n- `phoneNumber`\n- `link`\n- `address`\n- `calendarEvent`\n- `none`\n- `all`\n- `trackingNumber`\n- `flightNumber`\n- `lookupSuggestion`\n\n| Type             | Required | Platform |\n| ---------------- | -------- | -------- |\n| string, or array | No       | iOS      |\n\n---\n\n### `scrollEnabled`\n\nBoolean value that determines whether scrolling is enabled in the `WebView`. The default value is `true`. Setting this to `false` will prevent the webview from moving the document body when the keyboard appears over an input.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | iOS      |\n\n---\n\n### `nestedScrollEnabled`\n\nBoolean value that determines whether scrolling is possible in the `WebView` when used inside a `ScrollView` on Android. The default value is `false`.\n\nSetting this to `true` will prevent the `ScrollView` to scroll when scrolling from inside the `WebView`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `setBuiltInZoomControls`\n\nSets whether the WebView should use its built-in zoom mechanisms. The default value is `true`. Setting this to `false` will prevent the use of a pinch gesture to control zooming.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `setDisplayZoomControls`\n\nSets whether the WebView should display on-screen zoom controls when using the built-in zoom mechanisms (see `setBuiltInZoomControls`). The default value is `false`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `directionalLockEnabled`\n\nA Boolean value that determines whether scrolling is disabled in a particular direction.\nThe default value is `true`.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | iOS      |\n\n---\n\n### `showsHorizontalScrollIndicator`\n\nBoolean value that determines whether a horizontal scroll indicator is shown in the `WebView`. The default value is `true`.\n\n| Type | Required | Platform     |\n| ---- | -------- | ------------ |\n| bool | No       | iOS, Android |\n\n---\n\n### `showsVerticalScrollIndicator`\n\nBoolean value that determines whether a vertical scroll indicator is shown in the `WebView`. The default value is `true`.\n\n| Type | Required | Platform     |\n| ---- | -------- | ------------ |\n| bool | No       | iOS, Android |\n\n---\n\n### `geolocationEnabled`\n\nSet whether Geolocation is enabled in the `WebView`. The default value is `false`. Used only in Android.\n\n| Type | Required | Platform |\n| ---- | -------- | -------- |\n| bool | No       | Android  |\n\n---\n\n### `allowFileAccessFromFileURLs`\n\nBoolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. The default value is `false`.\n\n| Type | Required | Platform     |\n| ---- | -------- | ------------ |\n| bool | No       | iOS, Android |\n\n---\n\n### `allowUniversalAccessFromFileURLs`\n\nBoolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. Including accessing content from other file scheme URLs. The default value is `false`.\n\n| Type | Required | Platform     |\n| ---- | -------- | ------------ |\n| bool | No       | iOS, Android |\n\n---\n\n### `allowingReadAccessToURL`\n\nA String value that indicates which URLs the WebView's file can then reference in scripts, AJAX requests, and CSS imports. This is only used in for WebViews that are loaded with a `source.uri` set to a `'file://'` URL. If not provided, the default is to only allow read access to the URL provided in `source.uri` itself.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | iOS      |\n\n---\n\n### `keyboardDisplayRequiresUserAction`\n\nIf `false`, web content can programmatically display the keyboard. The default value is `true`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n---\n\n### `hideKeyboardAccessoryView`\n\nIf `true`, this will hide the keyboard accessory view (< > and Done).\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n---\n\n### `allowsBackForwardNavigationGestures`\n\nIf `true`, this will be able horizontal swipe gestures. The default value is `false`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n---\n\n### `incognito`\n\nDoes not store any data within the lifetime of the WebView.\n\n| Type    | Required | Platform            |\n| ------- | -------- | ------------------- |\n| boolean | No       | iOS, Android |\n\n---\n\n### `allowFileAccess`\n\nIf `true`, this will allow access to the file system via `file://` URI's. The default value is `false`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | Android  |\n\n---\n\n### `saveFormDataDisabled`\n\nSets whether the WebView should disable saving form data. The default value is `false`. This function does not have any effect from Android API level 26 onwards as there is an Autofill feature which stores form data.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | Android  |\n\n---\n\n### `cacheEnabled`\n\nSets whether WebView should use browser caching.\n\n| Type    | Required | Default | Platform     |\n| ------- | -------- | ------- | ------------ |\n| boolean | No       | true    | iOS, Android |\n\n---\n\n### `cacheMode`\n\nOverrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This property allows the client to override this behavior.\n\nPossible values are:\n\n- `LOAD_DEFAULT` - Default cache usage mode. If the navigation type doesn't impose any specific behavior, use cached resources when they are available and not expired, otherwise load resources from the network.\n- `LOAD_CACHE_ELSE_NETWORK` - Use cached resources when they are available, even if they have expired. Otherwise load resources from the network.\n- `LOAD_NO_CACHE` - Don't use the cache, load from the network.\n- `LOAD_CACHE_ONLY` - Don't use the network, load from the cache.\n\n| Type   | Required | Default      | Platform |\n| ------ | -------- | ------------ | -------- |\n| string | No       | LOAD_DEFAULT | Android  |\n\n---\n\n### `pagingEnabled`\n\nIf the value of this property is `true`, the scroll view stops on multiples of the scroll view’s bounds when the user scrolls. The default value is `false`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n---\n\n### `allowsLinkPreview`\n\nA Boolean value that determines whether pressing on a link displays a preview of the destination for the link. In iOS this property is available on devices that support 3D Touch. In iOS 10 and later, the default value is `true`; before that, the default value is `false`.\n\n| Type    | Required | Platform      |\n| ------- | -------- | ------------- |\n| boolean | No       | iOS |\n\n---\n\n### `sharedCookiesEnabled`\n\nSet `true` if shared cookies from `[NSHTTPCookieStorage sharedHTTPCookieStorage]` should be used for every load request in the WebView. The default value is `false`. For more on cookies, read the [Guide](Guide.md#Managing-Cookies)\n\n| Type    | Required | Platform      |\n| ------- | -------- | ------------- |\n| boolean | No       | iOS |\n\n---\n\n### `textZoom`\n\nIf the user has set a custom font size in the Android system, an undesirable scale of the site interface in WebView occurs.\n\nWhen setting the standard textZoom (100) parameter size, this undesirable effect disappears.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| number | No       | Android  |\n\n---\n\n### `pullToRefreshEnabled`\n\nBoolean value that determines whether a pull to refresh gesture is available in the `WebView`. The default value is `false`. If `true`, sets `bounces` automatically to `true`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n### `ignoreSilentHardwareSwitch`\n\n(ios only)\n\nWhen set to `true` the hardware silent switch is ignored. Default: `false`\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n### `limitsNavigationsToAppBoundDomains`\n\nIf `true` indicates to WebKit that a WKWebView will only navigate to app-bound domains. Only applicable for iOS 14 or greater.\n\nOnce set, any attempt to navigate away from an app-bound domain will fail with the error “App-bound domain failure.”\nApplications can specify up to 10 “app-bound” domains using a new Info.plist key `WKAppBoundDomains`. For more information see [App-Bound Domains](https://webkit.org/blog/10882/app-bound-domains/).\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n---\n\n### `textInteractionEnabled`\n\nIf false indicates to WebKit that a WKWebView will not interact with text, thus not showing a text selection loop. Only applicable for iOS 14.5 or greater.\n\nDefaults to `true`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n---\n\n### `suppressMenuItems`\n\nAllows to suppress menu item from the default context menu.\n\nPossible values are:\n\n- `cut`\n- `copy`\n- `paste`\n- `delete`\n- `select`\n- `selectAll`\n- `replace`\n- `lookup`\n- `translate`\n- `bold`\n- `italic`\n- `underline`\n- `share`\n\n| Type             | Required | Default | Platform |\n| ---------------- | -------- | ------- | -------- |\n| array of strings | No       | []      | iOS      |\n\n### `mediaCapturePermissionGrantType`\n\nThis property specifies how to handle media capture permission requests. Defaults to `prompt`, resulting in the user being prompted repeatedly. Available on iOS 15 and later.\n\nPossible values:\n\n- `grantIfSameHostElsePrompt`: If the security origin's host of the permission request equals the host of the WebView's current URL, the permission is granted if it has been granted before. Otherwise, the user gets prompted.\n- `grantIfSameHostElseDeny`: If the security origin's host of the permission request equals the host of the WebView's current URL, the permission is granted if it has been granted before. Otherwise, it gets denied.\n- `deny`\n- `grant`: The permission is granted if it has been granted before.\n- `prompt`\n\nNote that a grant may still result in a prompt, for example if the user has never been prompted for the permission before.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | iOS      |\n\n---\n\n### `autoManageStatusBarEnabled`\n\nIf set to `true`, the status bar will be automatically hidden/shown by WebView, specifically when full screen video is being watched. If `false`, WebView will not manage the status bar at all. The default value is `true`.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | iOS      |\n\n### `setSupportMultipleWindows`\n\nSets whether the WebView supports multiple windows. See [Android documentation](<'https://developer.android.com/reference/android/webkit/WebSettings#setSupportMultipleWindows(boolean)'>) for more information.\nSetting this to `false` can expose the application to this [vulnerability](https://alesandroortiz.com/articles/uxss-android-webview-cve-2020-6506/) allowing a malicious iframe to escape into the top layer DOM.\n\n| Type    | Required | Default | Platform |\n| ------- | -------- | ------- | -------- |\n| boolean | No       | true    | Android  |\n\n### `enableApplePay`\n\nA Boolean value which, when set to `true`, WebView will be rendered with Apple Pay support. Once set, websites will be able to invoke Apple Pay from React Native Webview.\nThis comes with a cost features like [`injectJavaScript`](README.md#injectjavascriptstr), html5 History, [`sharedCookiesEnabled`](README.md#sharedCookiesEnabled), [`injectedJavaScript`](README.md#injectedjavascript), [`injectedJavaScriptBeforeContentLoaded`](README.md#injectedjavascriptbeforecontentloaded) will not work See [Apple Pay Release Note](https://developer.apple.com/documentation/safari-release-notes/safari-13-release-notes#Payment-Request-API).\n\nIf you are required to send message to App , webpage has to explicitly call webkit message handler and receive it on `onMessage` handler on react native side\n\n```javascript\nwindow.webkit.messageHandlers.ReactNativeWebView.postMessage('hello apple pay');\n```\n\n| Type    | Required | Default | Platform |\n| ------- | -------- | ------- | -------- |\n| boolean | No       | false   | iOS      |\n\n### `forceDarkOn`\n\nConfiguring Dark Theme\n\n_NOTE_ : The force dark setting is not persistent. You must call the static method every time your app process is started.\n\n_NOTE_ : The change from day<->night mode is a configuration change so by default the activity will be restarted and pickup the new values to apply the theme. Take care when overriding this default behavior to ensure this method is still called when changes are made.\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | Android  |\n\n### `menuItems`\n\nAn array of custom menu item objects that will be shown when selecting text. An empty array will suppress the menu. Used in tandem with `onCustomMenuSelection`\n\n| Type                                           | Required | Platform     |\n| ---------------------------------------------- | -------- | ------------ |\n| array of objects: {label: string, key: string} | No       | iOS, Android |\n\n### `customMenuSelection`\n\nFunction called when a custom menu item is selected. It receives a Native event, which includes three custom keys: `label`, `key` and `selectedText`.\n\n| Type     | Required | Platform     |\n| -------- | -------- | ------------ |\n| function | No       | iOS, Android |\n\n### `basicAuthCredential`\n\nAn object that specifies the credentials of a user to be used for basic authentication.\n\n- `username` (string) - A username used for basic authentication.\n- `password` (string) - A password used for basic authentication.\n\n| Type   | Required |\n| ------ | -------- |\n| object | No       |\n\n### `minimumFontSize`\n\nAndroid enforces a minimum font size based on this value. A non-negative integer between 1 and 72. Any number outside the specified range will be pinned. Default value is 8. If you are using smaller font sizes and are having trouble fitting the whole window onto one screen, try setting this to a smaller value.\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| number | No       | Android  |\n\nExample:\n\n```jsx\n<WebView minimumFontSize={1} />\n```\n\n### `downloadingMessage`\n\nThis is the message that is shown in the Toast when downloading a file via WebView. Default message is \"Downloading\".\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | Android  |\n\n### `lackPermissionToDownloadMessage`\n\nThis is the message that is shown in the Toast when the webview is unable to download a file. Default message is \"Cannot download files as permission was denied. Please provide permission to write to storage, in order to download files.\".\n\n| Type   | Required | Platform |\n| ------ | -------- | -------- |\n| string | No       | Android  |\n\n### `allowsProtectedMedia`\n\nWhether or not the Webview can play media protected by DRM. Default is `false`.\n⚠️ Setting this to `false` won't revoke the permission already granted to the current webpage. In order to do so, you'd have to reload the page as well. ⚠️\n\n| Type    | Required | Platform |\n| ------- | -------- | -------- |\n| boolean | No       | Android  |\n\n### `fraudulentWebsiteWarningEnabled`\n\nA Boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attempts. The default value is `true`. (iOS 13+)\n\n| Type    | Required | Default | Platform |\n| ------- | -------- | ------- | -------- |\n| boolean | No       | true    | iOS      |\n\n### `webviewDebuggingEnabled`\n\nWhether or not the webview can be debugged remotely using Safari / Chrome.\nDefault is `false`. Supported on iOS as of 16.4, previous versions always allow debugging by default.\n\n| Type    | Required | Platform      |\n| ------- | -------- | ------------- |\n| boolean | No       | iOS & Android |\n\n## Events\n\n### `error`\n\nEvent that is invoked when the `WebView` load fails.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `error` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\ncode\ndescription\ndidFailProvisionalNavigation\ndomain\nloading\ntarget\ntitle\nurl\n```\n\n---\n\n### `load`\n\nEvent that is invoked when the `WebView` has finished loading.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `load` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\nloading\ntarget\ntitle\nurl\n```\n\n---\n\n### `loadEnd`\n\nEvent that is invoked when the `WebView` load succeeds or fails.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `loadEnd` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\nloading\ntarget\ntitle\nurl\n```\n\n---\n\n### `loadingStart`\n\nEvent that is invoked when the `WebView` starts loading.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `loadingStart` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\nloading\ntarget\ntitle\nurl\n```\n\n---\n\n### `loadingProgress`\n\nEvent that is invoked when the `WebView` is loading.\n\n| Type  | Required | Platform            |\n| ----- | -------- | ------------------- |\n| Event | No       | iOS, Android |\n\nThe `loadingProgress` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\nloading\nprogress\ntarget\ntitle\nurl\n```\n\n---\n\n### `httpError`\n\nEvent that is invoked when the `WebView` receives an http error.\n\n> **_Note_**\n> Android API minimum level 23.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `httpError` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\ndescription\nloading\nstatusCode\ntarget\ntitle\nurl\n```\n\n> **_Note_**\n> Description is only used on Android\n\n---\n\n### `renderProcessGone`\n\nEvent that is invoked when the `WebView` process crashes or is killed by the OS on Android.\n\n> **_Note_**\n> Android API minimum level 26. Android Only\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `renderProcressGone` event is called with a `event.nativeEvent` with these properties:\n\n```\ndidCrash\n```\n\n---\n\n### `message`\n\nFunction that is invoked when the webview calls `window.ReactNativeWebView.postMessage`. Setting this property will inject this global into your webview.\n\n`window.ReactNativeWebView.postMessage` accepts one argument, `data`, which will be available on the event object, `event.nativeEvent.data`. `data` must be a string.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\n---\n\n### `navigationStateChange`\n\nEvent that is invoked when the `WebView` loading starts or ends.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `navigationStateChange` event is called with the following properties:\n\n```\ncanGoBack\ncanGoForward\nloading\nnavigationType (iOS only)\ntarget\ntitle\nurl\n```\n\n---\n\n### `openWindow`<!-- Link generated with jump2header -->\n\nEvent that is invoked when the `WebView` should open a new window.\n\nThis happens when the JS calls `window.open('http://someurl', '_blank')` or when the user clicks on a `<a href=\"http://someurl\" target=\"_blank\">` link.\n\n| Type  | Required |\n| ----- | -------- |\n| Event | No       |\n\nThe `openWindow` event is called with a `event.nativeEvent` with these properties:\n\n```\ntargetUrl\n```\n\n---\n\n### `contentProcessDidTerminate`\n\nEvent that is invoked when the `WebView` content process is terminated.\n\n| Type  | Required | Platform                |\n| ----- | -------- | ----------------------- |\n| Event | No       | iOS |\n\niOS Web views use a separate process to render and manage web content. WebKit calls this method when the process for the specified web view terminates for any reason.\nThe reason is not necessarily a crash. For instance, since iOS WebViews are not included in the total RAM of the app, they can be terminated independently of the app to liberate memory for new apps the user is opening. It's not unexpected to have WebViews get terminated after a while in the background.\n\nThe `contentProcessDidTerminate` event is called with a `event.nativeEvent` with these properties:\n\n```\ncanGoBack\ncanGoForward\nloading\ntarget\ntitle\nurl\n```\n\n---\n\n### `scroll`\n\nEvent that is invoked when the scroll event is fired in the `WebView`.\n\n| Type  | Required | Platform     |\n| ----- | -------- | ------------ |\n| Event | No       | iOS, Android |\n\nThe `scroll` event is called with a `event.nativeEvent` with these properties:\n\n```\ncontentInset\ncontentOffset\ncontentSize\nlayoutMeasurement\nvelocity\nzoomScale\n```\n\n---\n\n### `shouldStartLoad`\n\nEvent that allows custom handling of any web view requests. Set `event.nativeEvent.shouldStart = true` from the function to continue loading the request and `false` to stop loading.\n\nOn Android, is not called on the first load.\n\n| Type     | Required | Platform            |\n| -------- | -------- | ------------------- |\n| Event | No       | iOS, Android |\n\nThe `event.nativeEvent` object includes these properties:\n\n```\ntitle\nurl\nloading\ntarget\ncanGoBack\ncanGoForward\nlockIdentifier\nmainDocumentURL (iOS only)\nnavigationType (iOS only)\nisTopFrame (iOS only)\nhasTargetFrame (iOS only)\nshouldStart\n```\n\nThe `hasTargetFrame` prop is a boolean that is `false` when the navigation targets a new window or tab, otherwise it should be `true` ([more info](https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe)). Note that this prop should always be `true` when `onOpenWindow` event is registered on the WebView because the `false` case is intercepted by this event.\n\n---\n\n### `fileDownload`\n\nThis property is iOS-only.\n\nFunction that is invoked when the client needs to download a file.\n\niOS 13+ only: If the webview navigates to a URL that results in an HTTP\nresponse with a Content-Disposition header 'attachment...', then\nthis will be called.\n\niOS 8+: If the MIME type indicates that the content is not renderable by the\nwebview, that will also cause this to be called. On iOS versions before 13,\nthis is the only condition that will cause this function to be called.\n\nThe application will need to provide its own code to actually download\nthe file.\n\nIf not provided, the default is to let the webview try to render the file.\n\n| Type  | Required | Platform |\n| ----- | -------- | -------- |\n| Event | No       | iOS      |\n\n---\n\n## Methods\n\n### `goForward()`\n\n```javascript\ngoForward();\n```\n\nGo forward one page in the web view's history.\n\n### `goBack()`\n\n```javascript\ngoBack();\n```\n\nGo back one page in the web view's history.\n\n### `reload()`\n\n```javascript\nreload();\n```\n\nReloads the current page.\n\n### `stopLoading()`\n\n```javascript\nstopLoading();\n```\n\nStop loading the current page.\n\n### `injectJavaScript(str)`\n\n```javascript\ninjectJavaScript('... javascript string ...');\n```\n\nExecutes the JavaScript string.\n\nTo learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.\n\n### `requestFocus()`\n\n```javascript\nrequestFocus();\n```\n\nRequest the webView to ask for focus. (People working on TV apps might want having a look at this!)\n\n### `postMessage(str)`\n\n```javascript\npostMessage('message');\n```\n\nPost a message to WebView, handled by [`onMessage`](README.md#onmessage).\n\n### `clearFormData()`\n\n(android only)\n\n```javascript\nclearFormData();\n```\n\nRemoves the autocomplete popup from the currently focused form field, if present. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearFormData()>)\n\n### `clearCache(bool)`\n\n```javascript\nclearCache(true);\n```\n\nClears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearCache(boolean)>)\n\nIn iOS, includeDiskFiles will also remove data from the web storages and databases.[developer.apple.com reference](https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532936-removedata)\n\n### `clearHistory()`\n\n(android only)\n\n```javascript\nclearHistory();\n```\n\n## License\n\nApache License Version 2.0\n","readmeFilename":"README.md"}