{"_id":"@matt-block/react-native-in-app-browser","_rev":"57-58d91bbcaf2a4c01206a7a0929c256c6","name":"@matt-block/react-native-in-app-browser","dist-tags":{"latest":"3.2.2","next":"3.1.3-rc.0","legacy":"2.1.3","legacy-next":"2.1.2-rc.0"},"versions":{"1.0.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.0.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.0.0","dist":{"shasum":"0faaf7e72f6e7f9d8289d59f00db47376ad75105","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.0.0.tgz","integrity":"sha512-sDMKh+Ru0ezYBGxPTTAdjPQXfKJFTGk4WKHvj79r8WWiCQkOR8TogOECCbmmwTNCHwXlLXEGyLVI3wjjICJ++Q==","fileCount":46,"unpackedSize":106191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtQblCRA9TVsSAnZWagAA8AoP/jW4mzFp9zQJefr3ns6n\nDqrKaPd8xvjuDNEXC2owkkxaMEmRw+DNAptQOCcKLRYrGFjejnXE+sGjsGcc\ne5OmhNFqU7jqrT/kEC0j7jFq15XIs1J30OwDstEX9gEgQHdUtE2nUdzeLVYr\nq/JLFzKKKdUJag+byozYQoKYIAEQbiX+w0Gxf/oObzk2TEOIo1hZJN5eiJBC\n4YddbvOkKrGCokiDrVZi5EbyM+l9SC1QHZIlbKvyy26sBQNZQus/+DVYnHX/\nFlsNq+IQhSghQJJJ80GlELky9pAVVLpfpgn7XbW9PgwH8EsR7jqklPTFgLBi\nQGvmC0tj1kjemjQe952ahzXl2mDaoZ5Qsqn7AodijwICuC91iHaCCO9/pD/M\nLVB8HyUQAUBZSKMbOkzhimxUgNA5+55DFtGB6tostIIhM9sLhOIjU8QpgPXo\niYFWZKf7ImqfsUrPGEKwlRsB+Kvjv9FprRrvHsyOZ1QtyLdy+0BGtUCr8DV4\nN/0zup+qn/P/72rb7Iw34pJ0VtbsPuUpFP8zllA1Cct/rRFBldqu80RSp5oZ\nODOdTTDqr6tDMoASR37aHISecFQkb4igo8IzM21TxZxJtnzyjjg/g2uo6WQJ\nGslAle52ASJ3RdMK0jizVZkLyJcqgJPVoYBV+dZI6tAOtLSesEOlpTKbFx0M\nSwQ7\r\n=M4OQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0SFQdlXqNP2NL8dUkFJwWmmMNtIqbq8Cd4zutCzmMVAiEAm3cJzyWFJU8sQTbYpUlI791JyAW0Ccb82rMmuEaH3WA="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.0.0_1538590436392_0.3589205459830551"},"_hasShrinkwrap":false},"1.0.1-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.0.1-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] ![license: mit][license_shield]\n[![code style: prettier][prettier_shield]][prettier]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from '@matt-block/react-native-in-app-browser';\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.0.1-rc.0","dist":{"shasum":"6e502b923c4af2689bdf0b7ca1eb4776b33e0b3b","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.0.1-rc.0.tgz","integrity":"sha512-fZE35UsEwqcRPYAfcd6FwmLz+PDiD58tKrg1YdrY7YrkA5vDDwY9/d2wnkbMlpoANCetX3IcmWLVSR0JNoUh0w==","fileCount":46,"unpackedSize":106395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbuTv3CRA9TVsSAnZWagAAAXIP/3L2avx9Ftsp006o0keK\nhemjmX7eXDXQDBT+1s8kdhQaYCKCkifmtoFXaN6xlm7oK1UXsR8Mk/v0qI2t\nqIebZhMVjmrN6TMwvwQ0cGsnD1HM90d6j53uToh+I8RNKsx7FfStwEqc7wqL\nt/MIWmRgzN1ucbWywGI7/3qI0PDSaKfs541rbLK3gVipPqLihthzBHbpvSmK\nsv6NAQ16kUZkBpGytxz3rQkvv1nrGfYbU8QKvaUmSWZQBpoWwoxpD0VRBDdQ\noE09JhcEucPA/O4h/krS3hnnJ2tQNRg4mh72WHfxMTJrdtQn7s2VsH4Ari6k\nBhv8J9pq0L5YvprOPAu7bWZvp4dtR1OllXzmmkpVqhurh3sZvECLWsvhJJY7\nOzDS1fyvLrJeyPnq3F7fFgUbpZqbWJgcnJIwfgKSIETduNsklM+CWj/SiD7/\nF/OxuVHryDgkvyU42m76/4lZ23DP3QqBe4cpiYzufZ+qnzPWou3SUtq9gVQ2\n71D26N9WavNdd5dNG4YTTw6KYltT94SyFqPtSXXd5bnD0UKyu0Rl1L8sfp/X\npxSMugF2qpUzmTjCUN7eo56gRVB6ORFDz0eJHxnCUMcor4UKWxs0yAc3qVNS\njgWonjjixhN7ALy5n57DxLkO+lK5+A2wzr10HZDtsIwXAb6gOJvkhJWieg36\nmqk+\r\n=JX++\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCsilsHbD/RNm2qYsKLvgyPfqj4Uy+dCCdyUW5AW/V2hQIfFh322RZLTOWkkN6tgI3LPW4jF+RfVQYDoPDNYZNqyA=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.0.1-rc.0_1538866166826_0.7247040720373032"},"_hasShrinkwrap":false},"1.0.1-rc.3":{"name":"@matt-block/react-native-in-app-browser","version":"1.0.1-rc.3","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci]\n![license: mit][license_shield] [![code style: prettier][prettier_shield]][prettier]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from '@matt-block/react-native-in-app-browser';\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.0.1-rc.3","dist":{"shasum":"dd1c4cf89b6d8b67fce3bc2b6ec4671a44575d7f","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.0.1-rc.3.tgz","integrity":"sha512-hyLaw7BYsdhAmS6oBng0NBax5RZq7yfrdWaifbq0bOjL4O7iZgBRDKZe2HkUy1e4vZDR9gPyYVIPEjhXNBx3eQ==","fileCount":45,"unpackedSize":106391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbuULWCRA9TVsSAnZWagAAP4EP/is8xZAIE2VS1Dhuja1i\nGLo/qoK/Iw7cVio0DWGayXQoNm8JowW6dnbH9SRDc47/8pHnFlVlmZ7SEJOs\nEbNmeTt5VzvWJ4ZrAY45fhk1rSsHu9nhC+cMnC7l19kmOPj+xP3eaMU8mcpd\nhyCa2HJqMt/Oarah5C0Cp15s2kuqeIAmkUnyNs7IDOAutf0hYVU/6Ju5f2WX\nzOkOhmaP+bjWqxUhXnpNKWJRW2TsSG9//fJt1BZksnCwLTH+c7yIXnxMmOi8\n2wyNEt3txlyObNhajoZ9D6mMV7vZwWyliQ7kOI7cHMrmUvsuhkB0lxjkgqXx\n5OLLit0xh8Z+re/IKSBAkmgZkipEg5S4YZbecluCeiZU+L6MYAXLq08GYu4x\nhMoFPxOYoE+mgp25pAV1B/DyMEYhyLjHCMTZbm5r8LpjCirPcHBMuiptviFQ\njYBXPzEkMzKKnnipojVe0DnYKgTIoURg+oqXIsbE3hg8Os0/GFKMDtIGau6F\ni8XNHldEgT9kPNqeM0cRDtQiXi4dQFEuk8bd0LwIShgDiVF/z5PZhwBkxBa7\nYCAoljt2EwYAyHcbaRF6hhQlUwPwMCv5S3S9TgGt8laybI02xAGpKXyYIyla\ntsLyYao5W8JM9zv3SZU5XvjEDZDRvBtfcY1hRgYlvVmW4ZBdEygKNjxRAU2o\nE2vs\r\n=xIwv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhqwXW9oumX1xjuogy6D0SVeYcN+nCFtCZNWtYIssm7AiB0pWyUQ6XDtpbq0BH6gbmzr1MAg/TdyZa+gMHIeQvmEQ=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.0.1-rc.3_1538867926230_0.8301931795773434"},"_hasShrinkwrap":false},"1.0.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.0.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.0.1","dist":{"shasum":"9409fbbd98be94218f2ba07f93fc684d5bfb0d97","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.0.1.tgz","integrity":"sha512-GzgQy1If1PsEiOqFy2nEQ1KN51AV8tAKPjqdM6jzj80NF51q5cn1ezXBx+Cy+SMjT26Z3xUxgHyewZCT2RMGfw==","fileCount":45,"unpackedSize":106386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbuUiZCRA9TVsSAnZWagAAeVEP/RxkMWYgrz9iG7Y8dix4\nlZhubZXTVcqsUd1pb1tnni1z5nNqFKfxH411ABawV5Zl5IhHVjZbfiiPfaB1\n0Gkza5T+kbrBaqmpqsVuA12Jvvz+Z9B/QBfn9qC4c/HxX+fmElq8ofqpYn9Y\nHwNP9v2YM8DvqcErRtUGaF5eXfKgx6tNShy/uKiGTYuR7lSRYXYvG56TMrvQ\noE2NeKCf8D9/fanKEM0VQrJm3q7O3xUeC7Kq+NxNKkB3gWJuiMCszmiwQME6\nIFCmwIUfCAGM56ehI8zDSvqVcbSvN1f6cLpcH1YfKK+TfRUDg25BnfDdKeUK\nvrHhOHjR5ENSf4zI+tJEd8S7y16hQKP8LHpqdu9IOD0yFVy3f76t2CcFY6TX\nXf2rWm11DRpznjcyP1Sc07ipiQil4zk98MSsUSkVC7EA4J1coB6HpomudwZG\nyMbKxkIh0o7y2dhZUNKaImzOXIajWybyXMlx44EyjO9w56j2iL1s03Z2boVj\nO2vLxI6LZoxs5TbDMzOBeRXVoNOnGSceI660V2KOOKbptyqHdnERibtqYjqo\nZKr6HbRh5VHAgsnTpQhLR/QUwO9x1I9Y1J01SfDanMY9H28ZD/MfXFNmPL6e\n+uYry8/mi3SNZXzXcZiIuGKkZFzVJsLauGOWbGKd/2IZj/mAXHGxwtL5/ODK\nxnzz\r\n=HJxn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvMMrk1x1511AQ98r3SJKQKqhXoS0TdKFF/iiX61kkxgIgV2MhNJUE1YWXSwgIQuAZNznsBc9B/+GTZd6PHjkRYxU="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.0.1_1538869401220_0.5207984552683462"},"_hasShrinkwrap":false},"1.1.0-rc.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.0-rc.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci]\n![license: mit][license_shield] [![code style: prettier][prettier_shield]][prettier]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.0-rc.1","dist":{"shasum":"c4c36fdd1c7c64ac79c6533cfd19082858784e37","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.0-rc.1.tgz","integrity":"sha512-Fc05Af+VwSOXOYr55sUL0NPd4XxxRr7e2A1M0NHpzRhnPR9fPQpJLPzaQr3Ep4m89bCAbfPEflEicceAun7siw==","fileCount":45,"unpackedSize":111809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwmb9CRA9TVsSAnZWagAApnIP/0TEm4iUO1H1Mqtp45T2\n0WnK/GwvMzzwX3j6jYkJXC38dQ9eeHhyOdzD13VZOuXXqYXePqvu/+OMMnWf\nsxrFM0Dqf1GbMrrkn7zrppFYGsYqiykMGdOjTK8dzCLDToiQzpuF/9+5rfTo\n6AcnQAHLLEJ7wIC04e+e6LUUpz9INAd0zUioO5bhiCPLjikOXOt3r0iVv/5Q\nqysTqOnrkuYgksVmnGnt+R62pHyZFTNzVa+xOqT85Jq8hdKw/xElyKzHIZHY\ntyOv1pN3/SqZMxpPpEZbUSK3Vwx0M9iCIV1Hn/WkSVdJfTHF6uXf15gS3rFm\nI6ptzEAVytxui+5TkhWzvNTx7FG/Ct8HYQnf5W1Bf5V2AuLEO6DgwWr6Xzug\nQ9e99ke8TPNnHm6+SjEzSaNSLZo80N6j1qipdKMvLiW9KS7HjhBQOrXYAvXM\n+CYGJegAfKfcSBKHR1ApAxysjW1sGT0xtdQ3T4u4Y6oKtD/XeTA2g7iq4TPK\n/WeN1rBhJlxP7QvilBwcgaIwyHej6rwvdbNjkzK8PYhpfa8joct5pBASOyzn\nlXhswYtdw0I9UTkP7y2Cc0IvtPbN2/eCWRdp1inKTfaSumRCNKgTQQMKtkbG\n5L5v9h7oIeNxl4LyhL0/CJtIGtSej8lCRQfl3Hmeo3Qg4CkcVGPTjKxH/9r2\n7wAp\r\n=4usf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECsWovTdeFHbZqUfKkcUVRXNwItatPblqRffnbG60hnAiASFSNxBVqNzTwabpeyLgsvy1RfsqAGlF7u4nHdRDA2Ng=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.0-rc.1_1539467004830_0.811862685733522"},"_hasShrinkwrap":false},"1.1.0-rc.2":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.0-rc.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci]\n![license: mit][license_shield] [![code style: prettier][prettier_shield]][prettier]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.0-rc.2","dist":{"shasum":"e6aeeaa36a1e57077512744a10e13542c5daecda","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.0-rc.2.tgz","integrity":"sha512-Luy0kZREnzaUim4C2f57Xe7ZYpxtsTQxXuPEFT9iUdBIElZfQ8Btwqd5nLWUcbEzMmd9fOldU9DUvlMoX9EWhw==","fileCount":45,"unpackedSize":112220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwnBTCRA9TVsSAnZWagAA4X0P/1KTlVOhz7MIMaiksdIJ\nHmVO9GTrtWlHA1Z7WfnDZHhNPerbFh18x7pxjrYUOhZrXuimeLGKJP+TOCS9\nQDXVq7+b52MN9LLD7XF6JR4zMr2h6VpvbeI4qti5ek6cbkXpajoOCdZP5Rh+\ng/QnOFzfjabIjB0DorFl/X7Kk5GkYYPomTE3I2Gu8cMsbNvBx07sqP1L0R76\n/uhwu3z8CyRCA8zkFQGYMUH4hcAF25oQBGIA7CW17fn0CBJLMugkOQfDdyiV\nvttPqTi5dKaB/ukpuQhUB90DFjgIkQmWYwB1HDcQEq1rQDuIZHZrjOK/fmNN\nUMTvEyn4xYvqUUEw4sxiamvK9joa4aHRXMvk7UmVTWkI59MpKNLhs7536oyX\nYgYeFfi3YXT8XnbuIsGhoHyxOuDtAa3xpEOzPRhXGlogxaX8F3fwJU9yltB8\n5OO+TzTROAE7i3Y/rqg8nRTkIBXBdk+e41tR0xoZjkP0UBOEWRWmRUyZynDy\nDYLS+qI2uTkkj2eQhJ63zCnzV/XM3dYnCwoVOr/AL7BQmiQ4DXC0AV2US1cb\nd2/A3ULT3z04w+PbQmMQnq/R76TwWHtII//8sa9DyUYqJuMaCXhSoEVf4y6d\nDDFg3rulCm6JROprns4wxpx2LpdsMuhRAc42mFGaRRGYCBPCP6RkbfcR7y8P\nIZR4\r\n=2gBu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvMIiiLsV6G3O8AKA5mgH98SBn3x8JrZPSF8q4bTG50QIhAMH+aqMvnArauE37fxoCFdD2n8wzXo49KYKOVnyAUx8g"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.0-rc.2_1539469394537_0.24431207964401147"},"_hasShrinkwrap":false},"1.1.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@babel/core":"^7.0.1","@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.1","@types/react-native":"^0.56.15","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","babel-core":"^7.0.0-0","babel-jest":"^23.6.0","fs-extra":"^7.0.0","husky":"^1.0.0-rc.13","jest":"^23.5.0","lint-staged":"^7.2.2","npm-run-all":"^4.1.3","prettier":"1.14.2","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.1.4","ts-node":"^7.0.1","typescript":"^3.0.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.0","dist":{"shasum":"eea8c43366f7edfb172f1162f9b8d919df0a83d8","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.0.tgz","integrity":"sha512-1d5qBFFyr/wLhchoFUYiAyaFZ5i3hGLuh1Vmg95uwTH+YwZZ3l8Op5Ed9z1hyk0Fv7Sk0cR97nYkikKgn7Rptg==","fileCount":45,"unpackedSize":112215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwnNyCRA9TVsSAnZWagAA4dMQAIINK7wamF2UICz/i1Ml\nmTUJ/fIeuwGvgmbOdgpl368/l53AJr/AXNqt8Iq6nBa4EkWKg8QhYty0cUQ8\nZutYuSD3bxfFp0E4PAhg3gvfM3gXsrD2zkgksWc82Bl1KF4YdkvnvoBBgPmz\n80jGp/SVBb2BWC6GdI/R3+Nc0iJ4dCbA9/hovJgTB4UxvrmQ4pl7S9z75gAY\n/694X0ocDIzrTSYsAm0mwdSXKn9UUUJL9Adr04YzCdREr28xOqeWP+IgW345\nuPqII+fHld7IluzHUK9XL3hDphKjklBQq8aWf5FlZg7/MM6vmGwoml6MfitC\nY2beO9m0f6r0JIItnaz64cieKnAheylfOLs61mm85hAfWASV0+/xAIgjH0di\nm+9IXOGRT61L0phxYF1EAQujWtW/grjb0tRFWns0BU9gHg581ACdv+mAHk0i\nSyT0/VRXgLSyiaQJTw/yikpSMqrs+R/j8chwxGBNgtXVKCGkcCwb4Vv6zJE/\nGpIsxGjq0RhxrCffnBMB8YEgfpNW+QS2+cg76f3DRkibz2W4uAnlwQYYOocB\n2vj726pcXsOPM3050noX0bkidUCdBFOuOdDPycXs4RWvlfdrhQx0GUwtRH7+\nvNZ/yd5Wl/g9Tn1p8WYQRqa5Bil68y48p+neIsBMQtzMzes/BL7E8rJnZ082\n2Al1\r\n=zsTk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7wYeCTYQzKJuzUzMSHm+AtVyF3CPWWA1N1VW1ZytzgQIhAPBzkXeqsbC6W5/TgeiEp37jhOG2DZhTD910qFVKb/U5"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.0_1539470193775_0.8057639599865118"},"_hasShrinkwrap":false},"1.1.1-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.1-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json-O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci]\n![license: mit][license_shield] [![code style: prettier][prettier_shield]][prettier]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.1-rc.0","dist":{"shasum":"f9ac6523a3139e87d522ad6a63de9f9b3a103dcb","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.1-rc.0.tgz","integrity":"sha512-kTiCBP7VltDJDykxUGpTn/SZ/xHzfwdBtKlTv2SqbVi3Q4fi7gpg2O6ZAHbCgoAsJCg/kZuh7Igttnz/njaCVA==","fileCount":47,"unpackedSize":112986,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2Gk/CRA9TVsSAnZWagAAARUP/196blODoC+vyKLh/KbP\nDPqedD56jDONOmLlVgO3rFdB0v3yJU0HI6cD9bOVce6nQAnjnZcUEPFB6rqw\nPtFIQU2hrXGz/jf+vE+NhXTaWhipID4qPGeDwLGCBZRnIYAjjHLImIzK3CHl\nHcRXL3AcMy9q6oj2s4Xtll12gaZTE04/RB2tZPueRGesYKKP3xw0DxTZ8tfZ\ng+VGkc7B1X+1a3kZltXMj/ZXmkwXHEYMoXeoH7W4aXgOyR3Q9rsbJYLsEAZ/\ndgbBYwTPmzZwiul08QTWVXoAlTmhOq+5cT3Py/CsTYRER3anL0NvWsEAVdaa\nzjaZlj4d41JM3HFJN3202Y9SD56vzK3AnE27RdvUDhJxZqTvUjl4Dvxm1zRJ\nTZTbqHlHdN8d+P46mcwHNqtl42TmKoXtW5Ta//8vk/Ir1To4uTf0s11nARLb\ncWKGET5hNV8M9bPdRXVhHuYWYUFfFWlFyPXGK9/np1+8EypiavScscEMZ2Ik\n3j68rsmOt8sIULG5ctXnX3YiAzIizgctM3r4DfLLnyTLeGlwFTD5w3eKFKhM\nE6HqnbfQBgXB3l/Qq0cvlkB+IR4Z/LAX7IsKChvGPmaYM2n1cWTnpyfdAd2l\n6zjpM81T18uSs5hE7ddZyeYdQccMtz4let9VIL6z6vtr2/t9CR6V7WoNMD5S\nMCzc\r\n=o24H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7kmAWqaMDn2HCrRIM2E9v+0fs0tansnNThnE4yLSH6QIgUnkQgwl+9pObiakZw/reKBDK0yXl8pgRimrLGTPEMt8="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.1-rc.0_1540909374000_0.663548180347868"},"_hasShrinkwrap":false},"1.1.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.1","dist":{"shasum":"941d0ff2c6b481fc1fb30eb809b4691296e44ae5","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.1.tgz","integrity":"sha512-tk6hHbF7ZSGwwpfaIMXJ7fknwNdF3niW+Iyls5qrM0FY2RMmeaE74KLlxPy01Ro/u0p/pvW5JucYvp83gtRHUQ==","fileCount":47,"unpackedSize":112981,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2HGdCRA9TVsSAnZWagAA1WQP/jeW4m3THaqLACOH7se5\nhBHMsRKXWE22Xop3YYIlDZ21xreheoFLqFy6+aiPt5+ATgHzH8uoKq5Snf9D\nWL1ZhiufQ9T6QOcuNUvtIg1/CLM1ppUrcT0H53+95+9no8VY+EFo2tG5Kuwa\nlXGbng6dU9JflYbmHtNeUdbN6uSZ0AFhbQYAnAcMGvHsZe936GncBDOR3X8Z\nB5zEAM9aM7Ej3Vj2SNyz76J2T80cYWHRI7sjtOXZFUeG9OrGNdScSxt0dwyd\nZNtBhzC64CLXJoUrJ4LiIR0d/a4AqILB5Is3ELprKQOPwxFDUpy1l9mVEuzz\nN3m/G2asBLTYNSzAkm9o+qQDJlbQhWxPDIPomuxlfIZc8Igwz6LQQ364Y0Z8\nhe9KtwmOOQpnRADlUifCHHlXkB6eczflGdFfCBL4pPd5ZHaLWO9QpAjm9bEE\n/Ghm/n96bSkOGziaX1gNhZHKRzGknh8soO4OgLgE6vXe1HrRRulgZsSnsh84\nG4a/kttv+jupDdsQnpyPvRq0v4dmTWA9zuhbGuVY3bYuoFyWylHFzTVcNM+q\nZ2ZGXVtdarw+Y0eQaWJi5a20ZNL58o2YFhTNPFJHz9KJj+19tNJMExLXrpzh\nzHlJE2PLmVD+I9BJZ7TE5VDAI6RxOHhD+K0FwJQy9a0acH13JzUPLmIYHtEq\n2iY/\r\n=XBzZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPSl4jUnBepfwmQWREX+q+YS/1Z5k//Ngg30cr8DS6UAIhAJlzaD+VBzrngeKHmN9+mgEGC2f0REkoBYKXUSta2drk"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.1_1540911516434_0.2527992430627415"},"_hasShrinkwrap":false},"1.1.2-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.2-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.2-rc.0","dist":{"shasum":"298e9cf01b3ceb018d8236ec564bf698cfc67f2c","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.2-rc.0.tgz","integrity":"sha512-55EfbYNESnz7XMkyAHT3fPydnfmcFNmGTBMM2d3Peknk3WYgnka3mpe6bielGpaJoDS1eAhDGBnmAIdSHJa3nQ==","fileCount":47,"unpackedSize":113466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBWooCRA9TVsSAnZWagAA7FoP/Aj2rH7jnUPiHAbeT9NY\nNUSpNbOu3FkRYsAZ///CIwtWzzVXWfPG3jcLW3HM2p+6OULvHW7qK0Qq+rCk\n03HxL4vD5w4iP6dLwEoX1bgeZ9lVwHV3vDNG1hZ/GRrekhwc0+LoQQQystmu\ne0RwafI2wflpVjuYrLiSvbGwX7lA/dpInfVUU0ZR5Zyzu37cNEkJYIKA3Q1m\n0Hs3bqIW0rwZAZLdQAEDq4i1fyVO08/YRVWma5cz63hNWvIhjcCiUPzFqFYQ\n9aVP1C5MnyVvsg2IYX4FOfXdv7EMz88G2/l9wnTtsqcIPTcTHPVCNTfoul/l\nqiDOXS6o/x+gs6s2qtVeTI5gPryCK8ySSmR6NRNdnAYqU/0cE1o8APyqLLcF\nepo62xq3BcSJ/cxT7IW0yJXmVJo/IqruRhJ8ukm3JVRfAgUs4qg2UDUFxNM3\nC2sW/mfKLor8K3hPb0K4m96KUv0vT4/+fjSSKKrj+Yl1CjnaruCSv3WRgKlE\nz4acV5oQGIXV55py+9UMPoct2Sl84mCpBE6IBZ2xr/O1lHIjbf4fKNqTEu5H\nlqfUR5UmIqnxzrY2p/CHbPA97wgryTmQw46gkQqeY/+Sg3XlxQLcS42+HSos\nHngbduef4cSJVW4LFuZLE45PoITgNpWXxkdhRHiYvaUvantTYPBywJmS5UQw\nO9+B\r\n=l7Y6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDo7z4ARPtgEJoYBnV3jDh0KqVYGYWoBgNhnRMxQoLaCAiEAjn0b7k2QJRHhRqa7TPISYLwDKFO0NCMoRv6Zln1981w="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.2-rc.0_1543858727134_0.4351041904918078"},"_hasShrinkwrap":false},"1.1.2":{"name":"@matt-block/react-native-in-app-browser","version":"1.1.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.1.2","dist":{"shasum":"b1a6df5d03d3233e357c97ea9c07ce2b9bec745c","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.1.2.tgz","integrity":"sha512-DLa9VXmPnlYkCIXDtEJ3GXefD6jz7XaVJyI8kuwvJZGmEg/eWCg6NjwYDFB/LiUkGfy4xqvP+2ESaA5sYJqvDw==","fileCount":47,"unpackedSize":113461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCFAnCRA9TVsSAnZWagAA+dQP/34LkdUeuwfWsZQmia4S\nRW6895bg086g3dDQ4fYAIhgOgFKcQC0lwdmcUFL6KgLxhNrbaacdw2/mS1gf\nOjiPnhfz5FWZJ4YFoL79XoQGLobWmOez/BlDzhmKZqgP5JgZK9x9lIE7fGwG\nvNJT1VsQgRf1QOn5aHgP8aHSypr8J+XboCf32ZufMeSug4NQiF9B7kc0HQgM\n0jZp4N5ZFxbQU2/oCCLjQizupF4S+GACPpEi+Tw67Pl3T21Ziq85AKVhC2zA\nRSuX5FGCoodfjmaHa2GMniq6W0vUX0jo8CLFADKDfWNzO6eWrdauvucQeu1r\nhniKz0wVdVbNIuTVhs6ABUaZg+lZpHjs6bUCwYeXYlXfjdGaRE3/MGAJyMvm\nJH7EDWffF3X0HHCpM2MLtN5t1QUzfMHT2DqS7f+NZyKc1FHh91zukvgSSwZa\naRX2Vyo8ml2zXJe9Vn9wbISxki9eN39F2bvGEerviir6nrfhST98dhnFD+4U\n5fK89TFJPBXqZCarm/IwlwJedjo6BJ+xXrCAFmml64cME8wAR+vuXuwC7lf5\nhX61kCr6OzJOPYKXVdnEez4zYReSN5L9M3dc6vmbfqh4YYE6gJ7GAFjbqsiJ\nhSF7JC0wu2gSfmnuyxdQzlizJfU/EsL7eQz3nsXkWRuzF4aYubLNS4FjBnzT\nD9M1\r\n=14Zo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXKACu65h7e0izq8OJeq9lwS78ThFbRYer71YzGZH/0gIhAKpyqfUL9qdFo++fqIBCyLrDDsi0/kcokEuVb+BprPv1"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.1.2_1544048678708_0.8280310381208664"},"_hasShrinkwrap":false},"1.2.0-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.0-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.0-rc.0","dist":{"shasum":"d353bc530ab50c1b4139a32bf0e7c581400041af","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.0-rc.0.tgz","integrity":"sha512-M8k8+b/bg4BibQtcAtOmGuCPXPkMFrEIJNdy9obBHx7Z1NNo2fIgRygl4BQWDRaGfKB2ILX5B8QDJaH6j258ug==","fileCount":47,"unpackedSize":114183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNNuYCRA9TVsSAnZWagAAmLgP/21MUgrbW6S2PRpdUWL3\nsbkJYc2+dGvXfUA7Zh1fNojcq9CRbJl1kBcWu8IhCOzXKjgcnQdIkFmb/gVb\n827ObIyXMXiErE6lOYo3uziUzTe4LV3obVwJZNkfXKBkvSUV1OcHixr9zlRA\nXpErlSBDZ64LHFZI9TOQwNR0hh0mKRE5VkKN7Dht2NN5xhjAJqn/UOXfiaSP\nqcNm/IiU7hn1yK0AQZX4ldFKLF3Fy+8v9QjGGCfKQ30yp3RLEQJV33dGkNoa\nQoA+zHs6IoGEMcxKrI5N6DPOfpKRByl6IGyUhRZtFKUP6a7XMxwv04jB4HgF\nFh/37FGu3nKTtxxxz7B7IZOl/ux4b3paNmhqySVERNn8f668TAXnm9x4X8Ti\nVa1ELVX1aBt+nyArPRJIejym80dVMvDctjBt7zFqHK34mbkf2lenenl3fdOT\nKMS8wKPLGlAkNA7wLLVCR4WFoSmQf4mY3/cbVzUIBHocNfPiwryrwI/1zxAA\nuU3YLT7N+wWfrb+ADazMAfrGy/+ESF9xNafKOdUsMAi7dB0CvYfZPeHpq5z3\na4FKNcP19e/sDufXPxLjE1bM9vel2zJKHpYeNNgiDHZ+Yb18xUiXvU7BHpCa\nwtZ8Y1h7Sdi++G+EGKKBDbbaCL5okHvpHYv9lQ6Ef/76WPIcQ8+kDdXXfpH4\nE9FA\r\n=HFAx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICL+E8ZE7mlt4FT6A0lbR2FDAdyAq7/gjLaAjsEGawagAiEA53pbKZNxwDQbfsqGUEPWxbTaDM5MurR965ERhGnAjBQ="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.0-rc.0_1546967959721_0.2761067479566024"},"_hasShrinkwrap":false},"1.2.0-rc.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.0-rc.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n| React Native | Library |\n| :----------: | :-----: |\n|    0.57.x    | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.0-rc.1","dist":{"shasum":"33802a9368ae2bbefefe9b6a6ba965b878ff256b","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.0-rc.1.tgz","integrity":"sha512-t7/xH8b+IdSCmwddtvxr5fEzTRuBOZwmsI86BJxe313XH+RRfDGy0VMn/C1KyCzEvzneRGcBbD1WRMI0Dna5ZQ==","fileCount":47,"unpackedSize":114687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNN/6CRA9TVsSAnZWagAAEb0QAIUKk1iJlFkmWARLWBcD\ndy+s+5vozVYlVmeJ58plDIp+cThjJWWICaJ7YcHyT39BUvUcTcucpycWDOm9\nsrx459V5E5h6caxhRfRQuqkd8k4psO+oaBDBf2c34z/efyBJ0ZhrKSBo1tqP\nhsVTyNxVOloCtbzwstsBqCgNbkJMcbugteJms1FkDOcV+Ovq0Ol/e5t231d3\no0bZWoWlI4TmCMdG9cFsWWAwta7PJb3cTl8BHd4/V+zZgp1M/UolXemySGfu\nu43ByWsLV5AJby5+G4sACrFscRIM7wN0acb4bHWMdJm4xIAURhhIJkieUHRG\neZpgopYFOmpGILHhRkgvFgc9rmw0Oc4gYvKocAsiosCZ5mxHk1i8x5i3CYlB\nEF/Z7JOKcfJYy4WGGrlMMlqnMySPm3cBcqSba9Q92QpJKXm0tsOO1GMcssuS\n2UKoXmhD3u277t6Me2QBG4iE5e57/ueA71/q+YKPCq05eACfRCmKbxftZJo/\nAESsXOi5gq3LlJpc6EEJjxQZ3zK1/zPQdI5CkjMZvJbZRxQYq/1lD6cBMTN1\nXAuBcx7zDCSeFOmzQpkpoKolsH9f5btDMlkqIyF56jb/fG0Hu6pdEPpTASQm\ndYw12TZshOBtyFpoYweDeg8fzLBUfDF3yNcPwzvynGCt/xTbBl0OXdCo1o13\nIeVq\r\n=qtzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/qsHN0txJboqxX7SSozM2BxBEr+2FUnn8NtCSgw5jbQIhAPu09yeO/yCP6vJwSfay3p+klHme0K3fWR3j+nvLmW4s"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.0-rc.1_1546969082324_0.23752531087034812"},"_hasShrinkwrap":false},"1.2.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.0","dist":{"shasum":"ddc0962b75ddab86b84cd09ba3db6e8b811bfe24","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.0.tgz","integrity":"sha512-E0ZkhtL1FJI6Z0yLjOLbkmetCX2KT23XczUcpGg6vE+UCwPKQ/wCB/AzSwCpF+SbB0VpzDvCqsZVDtpVBfchVQ==","fileCount":47,"unpackedSize":114682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNODUCRA9TVsSAnZWagAAcWUP/0YDgoMMIq2tMmlL529C\n90H8SZxh7sJOYpgG22Yc1WVCorhFdnrVFAxktmCHlr/B2VVhKCONFWjpPKuq\n1BOqTMOegbeP4e6r6K82pbNqMD16trgY3+bY/wQtJopRsNVK3Y24oEOhT5Hq\nvFYabK/P8gz4uNqMNdjZWz5daPBKmhSEjEJRgLY/hMYoggFuPVOYkleUhSTP\nYdBCapBy4wYgmUNIm2Nd5X5NmFnD9FFtqwb4etJc/cDd0laGVglyclTKU+gD\nYqBG3bMU+Txp64I8sVozi15Mbx0Cykk4U4By/gvM5xSwOy4xELiphu4aSrtV\n+FXtulRWrojpIEN3Jhx1qFgrMI2NtAEfgjqwcDNmH8vsrZq1i89p9pnv5zTB\nWJrnBo5wA5ASe9nHntKRZhzoueK1yWWJzIzNW7GDBt7ldhHfUWkAgWSwttIC\neac6fdby38yISX5uAsG3oFpWo6Sog7wJBzEk3Qj/ofRm4zfsGybSpwtgqXXD\nLAl0hVx6DFIKWvP+Q+tTXEDWIR9+V6UbK2MHRuJIQDP9a7ur/UNyb9i9oI3l\nJy/vBOGZ58L6Ny7bHT8Q+FLEuaC/avzs2c9cYOVW89im0SRyO2lDop7tHp2j\nWadvMsPMOJYf3NZ5aYCH1m1WDeU6O5J2g0ILYsFFQkO/s84oD3Aw1AuBcuHy\nPPK2\r\n=bhY0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCELq4LpBNgs+ruPLs16ejXOt/rxQrrfuJLjRGwD2lDOgIgKbl3gKFH14/wukAY+i9Ynxkm9LH/stUtve3x5mYW7PA="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.0_1546969300384_0.12847399287415562"},"_hasShrinkwrap":false},"1.2.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"~16.5.0","react-native":"~0.57.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.1","dist":{"shasum":"82489fdb10e139320ce60ff373072d30a3aef4a8","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.1.tgz","integrity":"sha512-fTAmAocCpEkthMFhvuF3rQNAznJR/vCeryxVm75PUWH3KdW8UVFmZS35TMRpJ9ZWM2LvDIjFkcZw0f/yxVS7sw==","fileCount":47,"unpackedSize":114688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcN01NCRA9TVsSAnZWagAARzcP/3E1oT/S5h4iE2qIEm/i\nWMAawnhRXJLmQRTZg5oAvlR+bKOSrrISzjNiiISFU073oJwHs9w3aHki0m3R\n4mVKbFNwGek5ZMgZFK69X8wjC+zAivAF430cpbkMfVLyAzBLzOp59/hAgq6i\nos37YqImry/1BV6JUP39hptKxnpIa5w4HDVmAKnI35mi3tnI2zSuVKVBoJFL\nI8aza2HbJ2m7Bks+hViV0FbQSfi389wm5FrvVT+KQE+bK3CvBr4veR6HEi4R\ngMF7GaNPxhsGXFFdz3iMKBm4QwCQoNCrcx5ahuY+aapDokRFP1OVfTYO4h7f\nBoE9+RW4t7GlBc8Ehul7wLyT3N7lwUYu/CauBKFuBOVLAYphD4I2o4ymJ9XS\n/6N8IWJ6n0ktWh0/fO+jJA4zgh8t03uHmzR+mYpdgPttX3+s1HH4A8vSTuSb\nqQxMEIsnoDtoyuEH9h2JwV9cdEu6vlEG1P4NSb/Chhtv5q3ZC49p2vCUXcsC\nKzI+uh0D4YsUK8VFS/MVBvJRcCiLvPx01/f/m+Ixm7noBwfavAC+5adz1OmD\nSCUfVCTX1Mg37ptM3sz5FORJwg8cC0XWJ7j3RmGgOBcgXgRZljzKa1Yc0+2G\nKhDOxbVM2moejXoNpt/yEJPO9dk0Jk9i9XTBpm1xw8LXzjbSfbSqAoMHMxFH\nyntC\r\n=LxCx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiafidsyOOcUm3EdkjZDcOALYD04fYzPoIBVqtuky6RAIgdgBNHXDY5thr7fXOcqe7/dZ53X/vawP+0fZtwQ6aOyE="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.1_1547128140936_0.8795845444036943"},"_hasShrinkwrap":false},"1.2.4-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.4-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.58.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.4-rc.0","dist":{"shasum":"c3606a2b4869cdc6aa1534ce4681b266e1f7877c","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.4-rc.0.tgz","integrity":"sha512-0P8PoKBpAlXoNhqQugrli8XbGabs7M5pEg2lATpekrtTD+hEc5DgS5b9P2GeLEcgYEi1fykHlfcHNB6Gq2XpFg==","fileCount":48,"unpackedSize":117018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUJn8CRA9TVsSAnZWagAAxm4P/RWb10DCGnFQNNS4wNNd\niE8vp0IqhpwKnIJcKOXSQy+UrzkLut2md2UjQmaIgvW3vVeakeHX6EM5oUOk\ncw1JhPItf/l0KmH3ddGW29uV/inJkBGL8crF1ag6KpXUAZqglS/c3z2C3Vaw\nAVvTQE3fyftSfLaRxcNO8p7UoLuiPtJjjK6QwlpO21AuDGYVZcyhum7P2f0a\nzGOyZv2F+VaL9PKysq0aQ4rJwsIl2XG0BM7o2x4e2QP+bR752JdvpkTuY7Wq\nNAjCzDHI+2dDp1305IJgsqCi7Q5I74Exw7x4b59YFFlL3HJEkv6KLcKyfm2K\nt68E4/9PNFi67ZXcZXTEb/Bwiej7y+C+3zHzji1vtDTwBmWz2Px9GnEcDCcu\n3yKUNZDbM1cRz4ChNICNn104BL4Ap9iBWYyCcBfrNnk5I/4+5frxmKYm9pmb\no9uj6k9VvMEqDiYMjAm8ex/CF/6gGamef++Thx2mGj+JkC8IXNp6gQMoO5p4\no5fAGJSgjopBAurt3iXq5aw3iPtc4oIn9AFmxUS2RO4Lii+XdOucadiFtIuS\nVQYlAUem+NmZsyf0IxbPa/xHcfvrJQjNMnNvkmvbQK5e0tkQKbi0sE3fX8xN\nYAvYTqI4Jcs7eRBd41HfgbBNuVdj2WDf/hsrZFMCafAes8klEIcDSL80Wtr/\nztHs\r\n=ud6Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3u/5GuGQ3UCkJMNB8di5SeoEURNBriZTjCBdJg01vJAiEAxaZRv6EUjzwwZfOLQq7H+R/Z7n5xrqn08t5frGH3yTw="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.4-rc.0_1548786172059_0.007373269989634501"},"_hasShrinkwrap":false},"1.2.4-rc.2":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.4-rc.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.58.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.4-rc.2","dist":{"shasum":"898648518453dcffa4461cbd906453934169a71f","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.4-rc.2.tgz","integrity":"sha512-yK4G1qMCt1nGNpdfPqdn2ps4vd9tfN4iok9vAAFkEkzpANxjDgXE32eFYMMw05mO76IpSvHT7XPqo29Tndbopg==","fileCount":48,"unpackedSize":117092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUJu8CRA9TVsSAnZWagAApXoP/0SEXKfFkUpT7B3OfcfO\nFOFTAUn4xOIONH5b75wedv/EfLCJZaMaC3qHbElul8nSrT+EV2aRL3m83G6V\nQCpsshUZEKIQIqaEpeGVVP1awdRY0ScjbGNzL8olusxHh8fVNtlnnUbJhqoZ\nBMW75uCKv6Jvjom0xrHHzaQ+/ytR82iiSgqlQ92wDga9ROUev9Iuq9wBbqAE\n2rstVd3EEQ9Ae3ITcVHwUBPR09Dy92WxptZBKGX+PCfLpDjqSxYsRjccBx8r\nUNvYC92kP/DN8rVg349rpkT+ucr1xZPy85pGzb9WNVamNsIr++FfUhCs06jZ\nN39bVPYyGcF4k2aU3tCWJ19rUhAsSpPx9yvoE0z2cASFGtxamKq2ksTQz6cH\ndDS3l3wSCaVRyZQFlnlY16T9kISlS/P+i8WRMgJgjCILA3ouR1oc97Z2K1ZT\niD15T7FRKBuYhyuAXxITmyQAr3RYVrr2ihwzZOw+zuXdX3CHUyGMjr1t4UuU\nbF173kFiuQ0A89HsoFqvwhHH0xRMloWMjbpXPs/tYf5TSGFMvTMnVRe1OPlY\ne2AAOnkzSDzdYWyXcX8r9URUK9UyXpFjTeqnEYLteHtUQn+A8VK2hAZG3VYF\nvz9MF3yKNZwPxv6U4NnZZgLBJWI4rHqm225NL5KsHLX34l+w0VMSnlNyHQku\nPuGw\r\n=vPYI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFn6VtTP4jiTJfjZVOlN3u0M8ZFeiO17qP8J24ry+5xiAiAtgpI0M1DGUeMAWQGqinCpsguY9lJ5BShXMrssZk4lgQ=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.4-rc.2_1548786618358_0.11613264193822226"},"_hasShrinkwrap":false},"1.2.4-rc.3":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.4-rc.3","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.58.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.4-rc.3","dist":{"shasum":"dd6f728a1a9e5d746f9ef49ac852842040a0ad09","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.4-rc.3.tgz","integrity":"sha512-GTXzaRKtIZpz0StQAWSpcKNmptMUma+nD/rGyi2TmHmmGOZR30lYr+VcBJoZriPLxeDOj2odIvSE7zdxABRhZA==","fileCount":48,"unpackedSize":117191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUJwBCRA9TVsSAnZWagAAc1oP/R74tO3BlQBAlP/h3POR\nUk62hDpLKPrzTW05By6lkrD9mbWOE9TLGo4w8SY2A24wDiC+XGKjz1wRgqMl\nUJ3wxvYKnUijopjLe+vxigWF6sCV0G/3+tNArTV+PcXXZ7FNcKymAtPtvN0v\nUgKKh4D2vxnRpENrPMmklf5QtMFkyppvduOQRO7Aa8CZcihHLhqZk0ygv0WW\nGh9/G66wRFqeIoEM8OdmZdo3ANOwnC/Ni1oG7Qa3AWIeuXOsyyi4wKN/aarA\n4ff9W2Ta4JfwfhOVnpobC9mfC3RN+QV5Q+KLq3kymnKGDeAkwpTkY/lcqedy\niOkIsTWKe73eTvZkToj9wEV+6aSM7LHH7e0lv3sXX08C6Zu0YhTiyC3jV9Hh\nHII7hs+7iAl2ngX7hlRzRuHFJG7X50OBxSdm8zbBspuB6O22TeJYJcqcOTkN\nNkMAFCn1b0qbbGpbLmdjDAHBlBOmyCYwSK6hSe0+VSo7TRau142nuuiBzlRH\nVqy2/kmlFSzegBXGH/WL9HkH+Mlf43IayPb3Layia94qJgaIeW8lCpSIf1Xu\n36hJoBOfdnLNhwa1hvO4eH+6F7FCaoXy/no4qeWpV+4hAv+G9PPg9o9iEG+s\nJSwMR6xW2wYItdVB2m63UTdm1ubrXLH41iIpUNHKHPF/3f7poKtgGXMZmr+K\ngzNN\r\n=EhH2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/xEf+GHlROQBV6CQq7CVFWwEZonUh0UzTmq3k1LU+vAiEAz3vlc+jNs2783GO3ot54vDLU7cXWBETMu//ghxA8iYc="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.4-rc.3_1548786689326_0.024536071103097745"},"_hasShrinkwrap":false},"1.2.4":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.4","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.4","dist":{"shasum":"4a4981e27198415d3362817d07c92a9ee4d87ef5","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.4.tgz","integrity":"sha512-VokR7TjCfVZncDtqV8CidHUjMMe+kCEZhyRBkbh5I1WkEmTkzynPK1a1WImyU9xS09atgDkY0k2CJ7zii4wJ1g==","fileCount":48,"unpackedSize":117186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUJ1zCRA9TVsSAnZWagAAA1AP/iAhIw0mbOgK4Lq+GRB2\n7H4L3pKJ8gTRIlRi2goUKXi3voPZDg0UwU6V7RyUDWdJmy4zlBwXW95WxpjG\n99Rt3bkGEip/r/hkNPVm+q3KC7dxQx6Ff8o5MVwmjUAxjGmxPn/ENYbZGpVH\nLDivZBgFJFIOlmIe9MksbQyBtwWBZJ5nEIvuhy+LRXTgSSYtUxuCrpHiKkfG\nUIxN87t6BnapjeipXrSeMDrc+bM+gCTGfRlCxdH+2rRRZTVHYC2f3j8dRNBh\nVeCirmM9Qvz7NrskPcDl38o3QSAoQwgyFiDFudb46vYn0T8XyhR2dkqQLkmX\nSlGGH4+cmBctwZjgGxaFo/RTHYMLPQ7LoBEKeHZHupVQTR7ZURXrYdMD7K/1\n7Y/VR9Epe4GoWVXVoK8FdizXcV4S7BGsth3hlTtBoyEZgiFP91d0gD7Rcnu8\nyPoBxFyoTpf5J8h0oEbZBsIKCJI5Bp+/A1jWOxS2o6veiMaSL0KahVsjMze+\neTPsBRMr6TUiEa98mKCcTqVYNIEDJt9Nu2JimG5b8RvExWiShU7xg/Kl0Q5B\nS9dOxA1+rMUVjt/WiPxGsBbO4GiQS2vivF+1VvVEde0ZfUT3RGCKiNdPSopw\nJ0fm3R/Z6cMgnBcYj2SriH+vqdzIfqzQD+dv4nNt4JJjftg/WBSpf6ynrQDb\n7iJH\r\n=eqBJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLftOOvSwTwR9fjnX+Z6NfSCnmuvvr2nP/rGu7Mujd4wIgd3mLJth/w//lqtt+9S0VKB2dqf+hYTQRT+ZsjnvaY7Y="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.4_1548787058574_0.04912558676490608"},"_hasShrinkwrap":false},"1.2.7-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.7-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |\n| --------------------- | --------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>The following names are also accepted: `red`, `blue`, `green`, `black`, `white`, `gray`, `cyan`, `magenta`, `yellow`, `lightgray`, `darkgray`, `grey`, `lightgrey`, `darkgrey`, `aqua`, `fuchsia`, `lime`, `maroon`, `navy`, `olive`, `purple`, `silver`, and `teal`. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                                                                                                                                                                                                                                                                                                                                           |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                                                                                                                                                                                                                                                                                                                                               |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                                                               |\n| --------------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/><br/>Provided color can be in a hexadecimal format: <br/><ul><li>#RRGGBB</li><li>#RGB</li><li>#AARRGGBB</li><li>#ARGB</ul>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                                                            |\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.7-rc.0","dist":{"shasum":"85c3fcb268169d30fabc16e028ec1d7b9ed07894","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.7-rc.0.tgz","integrity":"sha512-xDMwSO5k4i/NAbWrzzrD0IFpfsdfl/axB5Pq/sJOjJ1ZfKMhSl+vTuN7qYcRCzjD9bIG6dumMFyCz+gOToQA7A==","fileCount":48,"unpackedSize":116852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbvwtCRA9TVsSAnZWagAAdIkP/1XlJn9tNOHhowKpJbAT\no139Nl12h3gKJLFdcyTicrjXtodBVXqZgDG6QeJ0EShb3JSUi6Wy3yEW1HTl\nyaEcXiDiHqaRGHLGaPRQoxEWHRR+P346u6UiL2mHChk6HEcEWdMBEGRDrnG5\n/KbVJHmGKJrSEZuYgcNK3vMQ0Mc2d0vQlsWXEFFyi6lTQKn/qy2AutaQQro9\nxAguo91LqBMQpzWyMiymG28NqfiZ5qtvm9WwZMDmenIqgFh1n1jAQxjN6eAK\n2ldiKFup0neBhg3aYzxwj8UJUKIw9dBXZpiIaX/d+kvuKi2XI1eTbFnNwIhH\njpyqQb9JnB1cz0v1zsU+GcuLk69HF4jtAlkmF7fp5kbMnj9DmttIUyLzlJnQ\nVR2x/eZosn4dnufiGZKb1z9IU5V0u/U9pPMrKrAI5bPCFblMPPlKRVdKXIbM\nHsNSMnTccCMSlzGFH6AwEgJIVH8O3rP+8kj8Y+Q4cWo0kUc/realrVkud/hh\n/+8685y5DgHlMLL4Sr0P8EvifJ9y76YatkU3vTGI+lsMWjMTswT6TvD3G/N+\nSlp/Z7BoXZcVd/TukJ4aoD9A87yRFBU+HSO54tf6PtqJ5zQO+C4GwWK5s3iQ\ndN68FNiRHvp3Ik5Eck6oHTUEy+5pqyFcwnLHKYUZkNBG9Saw3Wa4l99PTZkH\nd7xo\r\n=jYnY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqx0SJ7rfL4fwJp3QaRkyXZn5DmtuyHnERwMWA++EHHAiEAuBbuvHqGbAnith2gUJK33df5OS5eWz6CzDQviXsJqq8="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.7-rc.0_1550777388455_0.45375851939324185"},"_hasShrinkwrap":false},"1.2.7":{"name":"@matt-block/react-native-in-app-browser","version":"1.2.7","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc --project tsconfig.prod.json","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node --project tsconfig.prod.json scripts/prepack.ts","postpack":"ts-node --project tsconfig.prod.json scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node --project tsconfig.prod.json scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node --project tsconfig.prod.json -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^23.3.8","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^23.5.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^23.10.4","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.2.7","dist":{"shasum":"3893b4100252582d566ed337a453cf48fedb960a","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.2.7.tgz","integrity":"sha512-E+meYS7pQpVidSZuu02uUY7IGx3ualHlDjHe3Km/vk5WaRj+2QQN+6Hp+eD/LM2CBpYmWUH3yUF632+b/EEh8A==","fileCount":49,"unpackedSize":117002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbwCPCRA9TVsSAnZWagAACGAP/0m0tYldeEzCFepSvLCc\nd7ePFomiW9euheiSxrbTvAdTJ1xNx8Y4VODfMrIWu93JNLKOng1KmioY4wt/\nmlXuUATtpQgkJRuOU68ncCbCWE+QYqfDBTr1f4Nbw8ixrG4KffsJrVUlXwNL\n1UVXawN1Y4DMnQtLUxzi+B1+MyRVNmiidNsRWiiwcsVPmmW4PkuBsRnY8gus\najP1Z35xmdFVTLkpvdOfV2RcX2VR2I4cQfY8lsQnGxU+iq81mko59RR8rN+K\nwlbhQRi0G+YpD50x+uPOwqhLidzH6ebaMv0auG4ZzgViOt7oBi61umEWA5xQ\nsWUI8YbT82eSYe9KPd939aAKRRaMeq2TPus9jloVEPVMyjAILroO4IdOmLYs\nmt6G42FjBhP0W1ndkkRSc1RnHgozRtZAw+zQeEVF3pdt11qYxRvY5dKhrWnX\nfjkEQ47gZMMDP4tfUBEgfhQ8Xn4TIcXW2IFlaxGKTkDit3nGQq35tVuwsZAj\nojpM7w9Wit9LrNVK/kWhkPIprmSN9JDdcsEu1453eWJ3QkdgWeZqu+sgNHfz\nkIXhDz+iA7GhSiKede6e+OeQV9bOZbaM5Oo23lhNfdqmYeNyWKYThWbkAmf1\nATEMXrXPZgj69FqHKw+SibrJhcENdhvaWzRKeTbmyI/ZKTMsZK0MPT599s+X\n5Yfo\r\n=eYb0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUw7bj9HBQbm2BF60mKVnWFgry1AvAg1vApcCgr+NthAiEA+gwSgiugKXCJGVHfYVnq82w/Qccogev1GWat4zGu92k="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.2.7_1550778510786_0.4764240247870799"},"_hasShrinkwrap":false},"1.3.0-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.3.0-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.3.0-rc.0","dist":{"shasum":"b3d517b33a014d0dcb5822a08a8ce80c417877bd","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.3.0-rc.0.tgz","integrity":"sha512-wHm0GCb9gNmpmWH85RcQ7NJp0YTNxLnbvkRGNkvHgCyeqUom+Nys4F8FjvASbMKyr3CCi0F7Kg+PzPIThs9EGQ==","fileCount":105,"unpackedSize":316379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdl55CRA9TVsSAnZWagAA+uUP/3fPncews+0Uh83Ck/G3\nk84hgLiqRQ2GpoeEfDn1j4dfmDh2V4VFJ5k06nS5pD54acsxhYgqS9qCqqGF\nAJVRKpL5KjDpuvPhHwJCLzPcl0tu+WtZ7i5KPyAi41Da0s1OWkytTPZXF4jo\nia6gaglbZK+yvmMTj1Zdf9oZbf/d1J+Yfqrxou0R40EQwvZmIMLPuqMymbaD\nk//1KQ6mBZ2YUcqQpl/3r7w3lPceX6eNqB4eOvCKpOAewhDKZeVH9n4iS8Uk\n66Mr+XKnngOPHmpa0xTHMUfyKAvnUIpKs1jIWV5gqHQlomtzuoq8jfh3gGjw\nEzJKRw8QksWlV3hKT+aCOklUsc16A3pvazKa8/RuoHgAkVOCaPKekHRAZUV6\n/BBuzq1PZ9Px+c8Mq7CJZcnwCtRBMyBfYcN7mNw518aNQyQ0FNIxfpNxD74X\neD0rmWPUHiQJCz2ZGNg1pWB+jRju3aVEcU0e97mfeOh5SsGwnJ2mZ+Z5wSVQ\nd/SSO9SzfQuY/ksrGyP4CoWFN6Muv2YGjOAx1EUw+21pew6jhRN9i7mvDa3c\n6XLrmUocKk3Ew7oPU0ZSQpPBNDA1QUDooV+6q3CUT5sYO9CG8ha9kLSxAWAk\n315xusSSoxP/8kj5I+M/e9zMUMsF7zyMZ+T93Adr1wwP2bEx2s7zbC0e2tru\nxMUt\r\n=neAb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqXn8Ebfks19rTPVhL3oLA1QDvRQkqnqj1Eh6NJagBvgIhAN6bsSwiY3Y3AdYqOZxjxHPnq8pbsDEFqg5fPvJzPWB/"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.3.0-rc.0_1551261304869_0.18372836512758672"},"_hasShrinkwrap":false},"1.3.0-rc.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.3.0-rc.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.3.0-rc.1","dist":{"shasum":"70bbbfe5a74be5dae017ec4971fbd88d7956da1d","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.3.0-rc.1.tgz","integrity":"sha512-WoCCsEznmqUSbizXodWoznAHpUY5XmZ1TQryQWzy7D0nQqh4rW5f9MZa8bxVbRpK1eLPmt2BXHmQ1BYbVVGUXA==","fileCount":105,"unpackedSize":316611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdmeaCRA9TVsSAnZWagAAchwP/R0x4Vj1V2pDnTrLH+bX\ndFKz6Ps+mWUHR+cJZfCZlHGGBi8vllK9ZAoYs9WCNqMoXz0jXO4KYkOoU88C\noM/Zx+NMx/zSEedHdRCpo+FulPmBsgtXKHe3IxwiZChEFysk24ZWp9LKtxMn\nbRYRM9UOqt4f6jgr+kPVfE4Sv41Iq8a9j/tafCvwaYrUe83Zibc1gMCVvHM3\nqkY/ChoPzBOoouQQmtwan8RB+iX7f6lhFpAA4jAT8TJioQWmsV74zp8HCmd3\n6mUw1BvgHQRCHsuu32GjUKSZ3THCQRniUvoGhr2BaEQjF7yvf91GqRadadec\njBP+RyrlhkkGS0NgEo7ao6p4JhzxwDFPvbASJ2cufHPKAh2b+d9+Arv0KWVU\nbzY97yEBn0p7tss3TaeLyr8niciVyBTcvpJ+TlShvgZ0G2Wea4GrkTp6XXzv\nSfnEnkEA7NdN6v9ghjB5Wimsxri0SPnTAAGjuthlI5c1Uzju4iw3RuNTK7Sr\nAIWgFKVTluJTFvfgy3s+gOUtHmD+gCoHCd8h+imC4KJCI95GKoFMwA9g/Qdy\n5w6ppY9weG03aFIhrLNAc7xEuSiilaicQIEd2VXy2ng1vtCXiACOATwZgXX/\n4joUwwH3xwGLMDDSWFHCYTL1jcApPNQIw9r6Z+JfBKzRUulBfIE6RwkUvbwN\n5yT9\r\n=OPwu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmNXuxwKrehvrCqu1W7/LpNqxPBc99x9zner003P+GdAIgapft1UUOg/i7iYtpUoL/8jR2ndfQboize+XwvACsdAk="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.3.0-rc.1_1551263641547_0.049473719185891385"},"_hasShrinkwrap":false},"1.3.0-rc.2":{"name":"@matt-block/react-native-in-app-browser","version":"1.3.0-rc.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n- Individual example snippets\n\n```javascript\nimport openInApp from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await openInApp(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance invoking `closeInAppInstance`.\n\n```javascript\nimport { closeInAppInstance } from \"@matt-block/react-native-in-app-browser\";\n\ncloseInAppInstance();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `openInApp` accepts an object with settings objects for each\nplatform:\n\n```javascript\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `initialize` so that each `openInApp` call won't need to specify them each time:\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nopenInApp(\"https://www.wikipedia.org/\");\n```\n\nNote that `openInApp` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport openInApp, { initialize } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nopenInApp(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.3.0-rc.2","dist":{"shasum":"0524f016e6fe6f274b75057faa58e673ea1efd32","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.3.0-rc.2.tgz","integrity":"sha512-qohPC58ZnY7o0+A+d6cKYx3ZqXcmzqaNcix6VkJUKx171WlX7+XTbhE/EW1kpF7ia0bVeus9YU0mM/fWdkAu4Q==","fileCount":45,"unpackedSize":112092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdmtICRA9TVsSAnZWagAAe8AP/3y9A/VYNkFAdH7vGmcJ\nXwqSbmLeQv9FT5kHcWlsdpMW39hV5N1zvrdPdsKeXoLVXF0Wuuh4cJydy0Ux\nAP5bQRoP1cE5Y0kVvwFira4NFjDa6R7AXTPOvuYODCrzW2Jnt8/gOKaezBbp\nsnYaaLUJtCWf6hdn9BwNVJful9H2mEsccZ9/apuAAwLP5RZwZzAByrfz+m7P\n2gDvmeFSLtyLViFLQILh/8SUa4rw2P07JbbZINg+6uh0lH2qxM33VTx17IIO\nc8sH3OcJxxtn7RPG0qk6RF+3GXv1ozkXVF8kzEzL+Mfz7XgJpQKz8L/NcqeH\nHo0qmlP45B/ppf87NE+lMqieFh3QtZbby0kuLHf88U1tHKLRQaC2ZjYakcue\nmepbJt/dP3Ozz0ytB5jD73qUE9h9kLKZczpBbh18Tg1FzStub1yNP0WsFpn6\nGVE+hdccJTr5N+yX/lgTF+7/Br5T7KqOigI1SgU5WpBET9MZL+Zz6KO/Ynyq\nU4USXQtwqvplUV/GSqZ/mD8Rw+Ilk8S5nzTyty5BgRRDOHBTrUeSUoaeMVpG\nAW7+VjKnv3qDKKhUPlVET+WLkoNAOECdhZ9eInHEGSTKNIW/L5hvmej3z8Im\nP1CCTKteCrv98uESxANlNQcBuxi+qWuFvYmVbZKPRdPvdh6mou+qGbWR7c6Q\nQSYd\r\n=rwxP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDizqjE5L6M1XbPlUXgLJu0InUc6Oj0RW7o2di2gv3EKAIgEnVkO4AXzOmMcEU7j+eikSxwEmHUTtiRHBYufhG8Eqg="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.3.0-rc.2_1551264583788_0.24690494348733694"},"_hasShrinkwrap":false},"1.3.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.3.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.3.0","dist":{"shasum":"b9a008213745ee8456bfad39ba7fd349da9b7842","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.3.0.tgz","integrity":"sha512-abFtRTapZKL3Cfhw7E6/dyCuH4Bp6wt4p/sEbO9Ag2PdYGLKlzhENMr64/TRC89SA/GzwpUiXze0zzV5hIJ7Jw==","fileCount":45,"unpackedSize":112087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdm0ACRA9TVsSAnZWagAAnScQAIT78oC55ycmOpzvJz4P\n5TN5OUBTuC/i4Aff0BfZYDiBBOpwSufCHCkMyGXOL4+HzGnFXhKmDTkES/AO\nTERwBv0vwfruwDAxoaPFQPAxMqJzsH6IqzUqBzw5o0dEL5YE2RUPcHj5/YGX\nEniyn09lzeoClTvQhQ970nAPPw915qYmJcZ9shd8p+TCDJJO+OKbxplvdQ8m\n8gaqf57ngKbk/hBXNY+ywM5lw4Wk+xqi6T0zz6y4ZoL10yaiy1lcrbmAseqp\n4ZcGYlAFjmOUsbn/U8SmWv0zwgFui4F5UhndGZb2de0kbWpoa3D5/B5hPgwU\nNnPJd5x3ba7VZmiV0pn587GYRZXJFBaZqDUjhJFigozlntxM7yhXyvL3/Q+K\nuV7beS5qOM3/MiXwFLsqSIuVMb+fbXsbr0jjg3cHXxBKWMeZWEp7nNoP3+SM\n7qs5W9dX83Kfk3ZgDmiVDnEVdwK1ACzRDksH5ZbiejRR0tSLw2JyJLqbNhUy\n4aivCAHY+o/oyy4DYJh0CtEIahH9mQC8dbjKZ3dfG57yEAtC1WeRaJ6a6zEr\nvvMZR7iiSGfSrn/JXR9kKp+cm9ru0lSTnKZbikyL7NjbvifBh223VyEj5Ows\n66hYCMZofdd4J/A7YxVggNDqQLK2jz4ppPslIwpP7M8WO/tFXxOisLlnV4Y0\n9r2/\r\n=0YO6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNniU8+RE8pseqec7mwIR37YeKclNbnPO5ktufKEYb2QIhALXmKQlydqn3RNzPZ0SQpeSEtSW838Lzz8OuCaXQqBX+"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.3.0_1551265023922_0.048835514524041335"},"_hasShrinkwrap":false},"1.4.0-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.4.0-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Some functions have been deprecated in favor of an object-wrapping approach\n> to expose functionalities (see rationale [here](https://github.com/matt-block/react-native-in-app-browser/issues/19)).\n> Update your projects to use the new preferred\n> approach showcased in this section and check the [Deprecated Features](#deprecated-features) section\n> for migration details.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## Deprecated features\n\nSome functions have been deprecated and will be removed in version `2.0.0` which\nis scheduled for release on June 1st 2019. You can check the rationale behind\nthese braking changes [here](https://github.com/matt-block/react-native-in-app-browser/issues/19).\n\nThe affected features are:\n\n- `openInApp`\n- `initialize`\n- `closeInAppInstance`\n\nBelow are migration paths for the deprecated features.\n\n### openInApp\n\nThis function is now exposed as the method `open` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport openInApp, {\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n// Deprecated.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n```\n\n### initialize\n\nThis function is now exposed as the method `configure` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport {\n  initialize,\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Deprecated.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n```\n\n### closeInAppInstance\n\nThis function is now exposed as the method `close` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport {\n  closeInAppInstance,\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.close();\n\n// Deprecated.\ncloseInAppInstance();\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.4.0-rc.0","dist":{"shasum":"42cd6a09824eebe934003aca7ea107fe3e96e0db","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.4.0-rc.0.tgz","integrity":"sha512-hIwqCXpL0ypoSO7xSmSxctyyJ+eVJ/yB5aZ/9Jxtx1G1xuB7wn9HmTqraN1GlAlycEEBjWZqtZjHsiLB05QFMA==","fileCount":44,"unpackedSize":119148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceBu4CRA9TVsSAnZWagAAaeQP/Re2AX9m9Q2FJnzMQjec\n70aV+kqAkaZa6DTe8CKxQY30HvNWVH0g2mkbXlMn6khOi9w2iWERkdk6OSf9\nnR/3gCpQkce6ZwJz6fPNK7k3vpeqYze4263/U6ubs2F1Kbzz5j2wsha0rkYq\n+a6VV98ITKiKwCwX0QKAzumTzumkmQDvUA73ScNmm8G1be6/0Eh4DDdWUeqx\ndJ6v8CHsdmRxlzVQgFBIDuDTqbjgtTyFLSyYsEePPMvJhk25ucQ6a4MdZvFl\n+LtPAu+9RESjNyDRR2pBkjJUpXMlSbVfB2Vbte7Qxp7VYtK79ZAuMNY6GvcY\n930gWy3FQ/bntW6LsknH46VgcOvmkx/TwgMnQ0jFHcfG4kxz7vOBidRoBrof\ngGTicHqUdtUtdis5GpRZEPlUysgTueF10zqwHNBFnQV22jp2ZFiUfwXi+RxJ\nNRO1NTiHfUf1dRDuFGdTc96aywFIqTUOONA0rYPZETJlKJtEhKcwsl9vQ6j6\nzNULxGsIC0F9RNDcEI4+eLbTkEyS9iRrAJdiUeT8rZrrPA4hZGndzZNXX6S4\nYhl9wGGXxxFzL8DLpO6veT8ynDlL6OycYrdwwZriQghx1HBXOyQ94LVutTr3\nis9wOfu1s4zj0uQBTpqqj+DQAM1GwwcjpyQZbrnoExXsWWspYpdHrLykWxCq\ndafu\r\n=YpJ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFoGRO3ngLut5xuzHMqoeO1fPDq35/bdGNTWWOJsaoxQIhAOjjgirv5XEiwMSB8YyVxQgiE8dv1C0AhFXvrFst4yPz"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.4.0-rc.0_1551375287645_0.9456331912466711"},"_hasShrinkwrap":false},"1.4.0-rc.2":{"name":"@matt-block/react-native-in-app-browser","version":"1.4.0-rc.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Some functions have been deprecated in favor of an object-wrapping approach\n> to expose functionalities (see rationale [here](https://github.com/matt-block/react-native-in-app-browser/issues/19)).\n> Update your projects to use the new preferred\n> approach showcased in this section and check the [Deprecated Features](#deprecated-features) section\n> for migration details.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## Deprecated features\n\nSome functions have been deprecated and will be removed in version `2.0.0` which\nis scheduled for release on June 1st 2019. You can check the rationale behind\nthese braking changes [here](https://github.com/matt-block/react-native-in-app-browser/issues/19).\n\nThe affected features are:\n\n- `openInApp`\n- `initialize`\n- `closeInAppInstance`\n\nBelow are migration paths for the deprecated features.\n\n### openInApp\n\nThis function is now exposed as the method `open` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport openInApp, {\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n// Deprecated.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n```\n\n### initialize\n\nThis function is now exposed as the method `configure` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport {\n  initialize,\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Deprecated.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n```\n\n### closeInAppInstance\n\nThis function is now exposed as the method `close` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport {\n  closeInAppInstance,\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.close();\n\n// Deprecated.\ncloseInAppInstance();\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.4.0-rc.2","dist":{"shasum":"0c4efe93ba08197c8d9aa9b276c56deb77f8f002","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.4.0-rc.2.tgz","integrity":"sha512-FGUahM/ESYx9HXTL7OoytUB+2SCVp8tn87pdQfqkUu2O7rRkdnZc7N08eQfUIxCRVqlK5aMBJmNWFuRoKb/GFA==","fileCount":44,"unpackedSize":119247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceB8ACRA9TVsSAnZWagAAYtQP/RFPkzJhFU/oB+G2UfIQ\nLdgTU2jMsGqw8N8MsEggl8A47zKAcGWbQYNUNtHIaU3Q0bvoVVrDXJlD2A9a\n370+K4pZKmsKLGPnsFyjjgksLLgytoAbBthwq8TkG846D4oDWPY2pFuDtd+v\nQkWEMo45yqEtrajM9w7FxMSKMyi1XIKCsw2EyA92Ax3pKNaod7fqGk1oz7pu\nm9/nURAKFsD84+G1UPhBfxNykaJ3CAZ1lb7gaKmmtMxkVRGmtFEUzEda7rD5\nCnv18hvL7XNEOMR79O0yZDauq9Zt/ee+cMAx8sy2VZFPxC5uq5GuhcD1tDZw\nAMt0X82ivVrTV11AixW1cFYFLgNfQNPgE+38bW6ovl9Q5/h3YhGxsgyPuiU+\nSy+ZYGy3xDMpwcUdCNmdmLmjfqH/DkWBLDC2xEurzPj6/rAB2MCEy+yp1EER\nN7nqfforWRfdzGDBsenX1inuq7cktEC1C4z6Eovb85kcNiNQDjctMNf/iUMS\n5/2R1eerPVljsT2bUuLk9OU9bLG0if+JJG2btaL10ROIdI6HiwWZL17sPW9B\nMVy1lJZNSCXU9QXUq63jjHOynCWXyufovJj519M1B6WAOnaHeNcW7Xa2HE/A\nKTZq0RJQ5ry2yJiDwQLb4tSpDDuY9MecxZs8mxMqleQ0UupBMKcv4IjmCgAE\n2BbW\r\n=n1GG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDJ3hnkn+hN21G7U+FHJA2i+FTPJW72giTl5dM8XVukQIhAKQ3qA0VyiHQflgonIgh6tNZCjHOtFXuET11eFmvTGrm"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.4.0-rc.2_1551376127693_0.6343179008015105"},"_hasShrinkwrap":false},"1.4.0":{"name":"@matt-block/react-native-in-app-browser","version":"1.4.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.4.0","dist":{"shasum":"c7c2a6b6768c8fabcc4fb34fda151b11e553612e","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.4.0.tgz","integrity":"sha512-K0LWrhNP3K1NTp9KAcdQTeH0qgwf4pS7HXi71i3U0VEP3ziwzrCCH2L8X3IWRZUbM0jyY9i/SNNu3Uowvt1s8w==","fileCount":44,"unpackedSize":119242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceQHPCRA9TVsSAnZWagAAhQMP/27GAWq7csPxtoSIdrWO\ncU7Bvfx74+VqqBmWp9Dp/Fj2yjcfQfmvwb70kaAyjiKrrTtNNHHEF2e6vVRz\nyxLFh+yqqwLX+ycr5GfJCtILIXWgXRiY5M2xHoO+JrYgKju57hnfk2FP1zhP\nOXi0ikGCdBSM7+r8oIokN5kvFaXGVlUAsTHWb/BkojseiYDQNb2hEAoYnjVa\nSAYHeOVIqUlDgo5j9balKi64Mr9R6i3KkKT1OI8BLLIgFb065RuyvFxejWmz\nMSFkj8KDCnN0Ni9h7YEOaJNJI8aFMOSv2TEQXxx75R5rikUalX+titf63zvh\nYLiBMQJr9I9hqKygJ8ofAw1ZJvogzZ0MxPdmOlpAz/myiUCCCuqFy0AXtX3P\nk3TrLPal0tjWiUscroiA1UApVeph/4airBmOgPuhAUhUacI2M35JxeUrR1VS\n7rQoMFZpCOyrNHM8M//x/vJtw5Zu7O9+qgybvs9lz4gdnPDijbeqd1WlD52H\n2ZKUuUo1I5E3GAD9QxyVMCIUzN4eF+B6Y8gvlsUBN7UK7QqUDguPSIJNzH4E\nh53LXz71Xw2xX85SFHPwSHsUTQJgIhFWHXlfCIC8EJLkE4+o0XEcviURiXhO\nLWcJEX3zDVzgL64vGinr8j+5c/yyJ60jqwria8gmI8JZpijqeokpD42ksrKS\nLSfW\r\n=+ycL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx7ewSTCB2R2IcCCecEAxNE/OC7EubUO7l4u+QFyVHEwIhAIVwszQdyfN7pgn1ARtS2jXIfKSxE3UsZFt5aRxdg28j"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.4.0_1551434190762_0.26713785110539146"},"_hasShrinkwrap":false},"1.4.1-rc.3":{"name":"@matt-block/react-native-in-app-browser","version":"1.4.1-rc.3","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Some functions have been deprecated in favor of an object-wrapping approach\n> to expose functionalities (see rationale [here](https://github.com/matt-block/react-native-in-app-browser/issues/19)).\n> Update your projects to use the new preferred\n> approach showcased in this section and check the [Deprecated Features](#deprecated-features) section\n> for migration details.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## Deprecated features\n\nSome functions have been deprecated and will be removed in version `2.0.0` which\nis scheduled for release on June 1st 2019. You can check the rationale behind\nthese braking changes [here](https://github.com/matt-block/react-native-in-app-browser/issues/19).\n\nThe affected features are:\n\n- `openInApp`\n- `initialize`\n- `closeInAppInstance`\n\nBelow are migration paths for the deprecated features.\n\n### openInApp\n\nThis function is now exposed as the method `open` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport openInApp, {\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n// Deprecated.\nopenInApp(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n```\n\n### initialize\n\nThis function is now exposed as the method `configure` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport {\n  initialize,\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Deprecated.\ninitialize({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n```\n\n### closeInAppInstance\n\nThis function is now exposed as the method `close` of the object `InAppBrowser`.\nBoth functions share the same signature.\n\n```javascript\nimport {\n  closeInAppInstance,\n  InAppBrowser\n} from \"@matt-block/react-native-in-app-browser\";\n\n// New usage.\nInAppBrowser.close();\n\n// Deprecated.\ncloseInAppInstance();\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.4.1-rc.3","dist":{"shasum":"b8eac13ae7c0296da41d5d9fc3ebe4cab70736b4","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.4.1-rc.3.tgz","integrity":"sha512-56lrhhiM5/9/VTpExfANiYitAJFH57m3XtYjHMP6JZaT0Z5CRpoJ8ejRA+/ubs6v3JqWPhTsk5+wXWug/pfmwg==","fileCount":44,"unpackedSize":119956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcubFICRA9TVsSAnZWagAAHM0P/1fZXyFoWuYvfzad3Khz\nojWY/+2MfN5t7TrpRGrMMtAVsUTVYYpDwjyiCHa1f75hd1Q9UcqrQHyHe6kZ\nfT5tCZCfklkBpgNqHJRWF9cKWdlpp1LMTwIAJSKwKEt0OpuvXKAOWJ/QDJ+h\nJXMFTA7XCytqTN/TO77BWbF/WylN9oGfV/XDJI1zRtmwMmky+zogp8Si9pct\nLirhNjPqsDiZ9+UmPts/hVEooaZP0lkBS0Z2WatTozLAOTX9Q3Zo5RA05upv\nS7rP67aDDoIG79XjgK/FOg05jX3rTWymHjL577eIcIVgM9JrwCoaw8C/pNmo\n2Tw0yRymNqgPBVh/mphKsrnILhEG6wprH7xBbJA99+evb5dflCoyxdYwuVed\nVQI7CWuyIIy6R9+pcqIfFfhiAkoMWy4CRIqLVzYCspgnK3pfv4BSfvna7Pdh\nuhSmpc/Vj5F3iPi53q8l3VUv6ISFCoFxOYjCgBoDw2tcZYeqa4zu3s7KHUGr\njqkBIuJwUpN+7nP7KmD7BnOb2S1Un2MngCoe1eL7tKV8lpiRL7DWZyIpeT1F\nCgwqLCFXo/pMJkmiMGwxJf0wyUili3uNlFHvCdoiFojcwkqqe7+00YXil4xI\nlU1aIAQMaJzD28TjdQF93LHH9rKOXctn2Kw41W6ti8sg5opSusiB+ySbjMPR\nBsjC\r\n=WNcU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKcPpuIlzeDsOM/OT41jrZBgOH53AuJWjYPNFOnRrEtAiEA4YD8tz1GLHhoyz0pGpEiqH5JpkwEL2G8hELpDvDSuR4="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.4.1-rc.3_1555673415026_0.4273865926412046"},"_hasShrinkwrap":false},"1.4.1":{"name":"@matt-block/react-native-in-app-browser","version":"1.4.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@1.4.1","dist":{"shasum":"261fdd6deb0b74310cb47ca0f8f1251887bfdefa","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-1.4.1.tgz","integrity":"sha512-zsjwxRTMJW9rBauWbrMLOndRkBFJ9iOBvwR37BBHzjUiRpSsp0T/Pol1LgaVSfmTx+Xr8jqhh3ae1llrEcbO5Q==","fileCount":44,"unpackedSize":119951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcubLyCRA9TVsSAnZWagAA8Q4P/jzJ92BMhJwayrWmnXI4\ncXZzWKblM/dsoIutYlBg8g27cTQRXzC0z10pIkw8Ekx6b0L/JR9KWsLVJdAZ\nG7pqdegB2rPJOjXpQ7Y9OphcgM3+EwUIjF/jj1nLB52pmjZgMB/in3syHS7z\nN4u/QYKhdBp6DT7iuNrye4B1dbDqfwxkD/PwrVBpP+siQsKYnL2+XQHg8hQ0\nVpFseWpUwXInmD6Z+K7QR/2WrVDNnESfFQn5Dmwk7lCrFkQaM7jMBEE73HJI\n0/qnRjR3Qzx56oDYVBvdBxY1VQhxy3M+VICyK6AlTF3cYXYAOlurvOhhS1sU\n/wUttO2NmMOXTDvKT8dMh5JLxwADRd0bzS4lhVk2+vNkD5Wp+w7yptHCWN0C\nsYhzOq/iaMDlEHda2is5nfei/ahs6ggiFCILsWIQOtywB/QhTRBEb/n1JmUr\nMwhcCE82vDIcfZ+c8o8xKXaL4gFAbIOX2hP9m3uDF14jOpV7sXZzhJJnwaJL\nPFU1D8V2p/pVQl8qG3qIZDIcte5UySjMBzrBB9x//lX0uOVqQjCA2xF9/PME\nC4hRlHfCwoMJETJ/aLCrAwelqAYEMnBdXM/wPu0cv7P2RAUcJCW+c6+2xTpZ\nkSMLfKKd+kI+SKdNgQgLicIvfMtq+2tMF3zR3jIiK6CSIXuKCGqv9pu67JBa\nmQOQ\r\n=10eA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiCJC8RmLSGXm1SshsMT2smaIqWtku/VaD/+YdrU+hLgIgJZ1Si7ixtY0nMtLBPiyGSV7EMkc07lzBsfO9SMuFVsw="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_1.4.1_1555673841943_0.7962981288453734"},"_hasShrinkwrap":false},"2.0.0-rc.1":{"name":"@matt-block/react-native-in-app-browser","version":"2.0.0-rc.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"matei.radu.92@gmail.com"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using version 1.x? [Migrate from 1.x to 2.x](https://github.com/matt-block/react-native-in-app-browser/wiki/Migrating-from-1.x-to-2.x).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matt-block/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matt-block/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matt-block/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matt-block/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matt-block/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matt-block/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@2.0.0-rc.1","dist":{"shasum":"13d393394974566a52df7fc9b7611ec2ad2a190e","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.0.0-rc.1.tgz","integrity":"sha512-USWhH45l0KWkWAXeLJ1JgSrw6V2sdsw4/u02R3SQR1WtUTKc8qycl3F0xEr9t7Ur5WWw9EH3Ur2G9PIkS0wD1g==","fileCount":44,"unpackedSize":115207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6m2sCRA9TVsSAnZWagAA9moP/3sgKZ9Nvbe3Q3ZOud2l\n+uO3mvOWtpP4bSCn/wzc3CpcJeiHs7qpIqIk/+mtQ7q6EdCjPpnsFZE6MMiC\nqWN/NanoV8kAEBlEoukv9fzQBzkKzNh/R2YzcxF/WPtfZwCadK4AaF6nWg1O\n0aZqVyuRQX5MZB3Pzmsp0IFrjDOsNUNLewEH8+6h3DyQqQ++lKCd4o+K/am2\nzuhvoPaHPNXUXmdSASXLNj7XADa4m50PmipMHEGD03xvDpo+Sfju1xs2pHIq\nPvHvctZV7Qx87eizL+5g5VPz1Gd11DY/7rNlTsXkATD/CdZ8ZK2nPFlETrXD\nfacCn+4jaSCppn8yqHEA9H66L6ivAO1qkXdjHWRn+AwRKoJvIiO3KIvJuiWL\n5ZKdIRDAkVvIBLKDgtSjC2veYZ/ZqHQ2bm5MCCEZmK9UuVATsyLLBxAHCxh4\nyJ0KndOUDZRFfhRuiCEEqczZVOdX32+e+YX2HiyAeFcbm6tvxpavNVylHtjx\nN6CaubTNKirnI/wIKiut6KfWUYbLzudA3TKihPZFW05CMtad24wAPs7nvdcD\nLV21biWydAjWSRf2+EjG9HpR11GcJgkwVmVp2daPb1ePYVvzfY8zrgJyAeq+\nz3UonXPONYQwqyBmDTqUIVzGc4jSL9XMsTP10dH+bPNRpj/Ly0YiVwJYpb4H\nBCuk\r\n=1Jgk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAeuFjB+2ED833uh7vXjYZ5vmnH4gc1VzHQkioDAqZYNAiEAigypG6Vt0I2Y3ofUDxb8TrnMN91I0AQsGR7LVWJTBss="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.0.0-rc.1_1558867371760_0.827357092768493"},"_hasShrinkwrap":false},"2.0.0-rc.10":{"name":"@matt-block/react-native-in-app-browser","version":"2.0.0-rc.10","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using version 1.x? [Migrate from 1.x to 2.x](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migrating-from-1.x-to-2.x).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matei-radu/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matei-radu/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matei-radu/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matei-radu/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@2.0.0-rc.10","dist":{"shasum":"bc88e1b5007210288e7765435c00f2c9ac1ffbf2","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.0.0-rc.10.tgz","integrity":"sha512-YN6JJ63O9VbWJiE0ZIIJgVrEcfBjcLi2IdNE5KglfObmOldIQmTbIrYEayoFUKO7Yy/QZhDzOCWnO7A9Asb0wg==","fileCount":44,"unpackedSize":115222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8DMKCRA9TVsSAnZWagAAScUP/RPH6JnbJDb+b75hveNh\n0VeETfAucYYMVCNydOyimwiCVD5Ckf4SGM+rPc+BR5smL1NJdN4PN6G9PCfF\nklhoLacoY/GqBsBGKclLVWbPfAmTfBz471F2lgI0f5hgh/JOh/wkBRUQhSLB\nYTkCRNqPnXxoHr4GqTcLgELOAqJpwnQEHVNTZW7oHcrP3nfKB79Vvqp8bf8k\nrtJwwZf4iVs4jV958Eud/JT73928gI83zoxnilnR1AreTjRkg4NceSbBAeNf\nutR8EsOqZes7FTMagzwhGAjOgvrFuZYV/MHiJFgX804gO1c11lgYq4Gseabn\n+i6hwAAHS1/sf88wy0A+ECtNtrdsKT8maiWbEJM1SJE/+FwYME2cwtqmwcXz\nvhVKUfjFzPBy4Ks5u9KE4Y5z6XeevTk9sAMGyhu4rigaEb840RVQoRn3isDk\n2tye+qzc6uQFZeCMkzfx3ylC0+4UnaVBu95X9liLXTVeU4rhCO5JNMzpjgbQ\ncb/ghO7vyUyIRN8HRkkJ8wmLtDENDgOkvM2HZO0Hnqpxdb/oRbdKNT7K3KHm\nImh769z4ELqMyYPJfAzNErovUjHRRIq5nBPaGC3hA//HEN48A8n5OAiP+7iR\nQz43CBxmHIaiH5VraWHpLlUXP5WEK7d1HNJRPcDjUTrq4Un0XvA/c6sDixTg\nqaw4\r\n=lG64\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEBbPOg+p1vYhoAbb1yoNv2YC7CGRmL6Dby1R8i4iPFAiABCYspz7Ye/q0yPDmvwW88s9hLTLNv8rxwaG5j+/Pi2w=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.0.0-rc.10_1559245577567_0.2686311738557343"},"_hasShrinkwrap":false},"2.0.0-rc.11":{"name":"@matt-block/react-native-in-app-browser","version":"2.0.0-rc.11","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] [![Code Climate Maintainability][codeclimate_main_shield]][codeclimate_main] [![Code Climate Test Coverage][codeclimate_cov_shield]][codeclimate_cov] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n| 0.57.0 - 0.59.x | latest  |\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```\nyarn add @matt-block/react-native-in-app-browser\n\n// or\n\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\nProceed to link the native module to your project:\n\n```\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using version 1.x? [Migrate from 1.x to 2.x](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migrating-from-1.x-to-2.x).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[codeclimate_main]: https://codeclimate.com/github/matei-radu/react-native-in-app-browser/maintainability\n[codeclimate_main_shield]: https://img.shields.io/codeclimate/maintainability/matei-radu/react-native-in-app-browser.svg\n[codeclimate_cov]: https://codeclimate.com/github/matei-radu/react-native-in-app-browser/test_coverage\n[codeclimate_cov_shield]: https://img.shields.io/codeclimate/coverage/matei-radu/react-native-in-app-browser.svg\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <matei.radu.92@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@matt-block/react-native-in-app-browser@2.0.0-rc.11","dist":{"shasum":"ae23e73d5a00773a6e3bd5cba46ece0c5e56cb6d","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.0.0-rc.11.tgz","integrity":"sha512-Smh2zvglHNN9+TiWe0DqzwZ4FOTANATcqnAnbog2eqFxn9Ntwtu1l/xL+fsP5aEHljdRw1G8eKMh/rWtW9CWCQ==","fileCount":44,"unpackedSize":115222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8UJCCRA9TVsSAnZWagAAv3AQAJtG5iVPqDWzRFssWH9i\naKTll9Z+wtFLOKJJbgN34hNw5dtfR/WF5BO/BXF6s8jh6AmIfMivdN/0kVdn\nTJOANkoSZ0zOZMXHT06Tso4B4tRNUKRQBSa098sUs+AhTQz+sKTjmezdLpzE\njoHP4ghLTVpILgvMsTq5gpgkxibptWqbxF0dll0Gv3KHRQ6AkkJibbQAeE2F\nPlLt5dkg1ff14jfinROgwIQk6BmUBSwoRkLzRN2AqaNQ59z1/mto9KSz3i3l\nGDQ4NjX3YXlfa7c3axRFmPoxlA0GccDOXYVPE4fxtKONpoAphWSNkkspvhKU\n0xurJEdvvROZwMe1GagIkYl49zUOMQOr8CEGqwGtCf0hCpEG9sgQKjpRkpWz\necSJxa4Ao2v8sg3t0oj/F2RQFWQ9OtVl7r5DiVN+4GVyqQHnpxdaBIpacHJo\nca8uH+jWrNlGkndwzwg+2EX6qDfpjUHzIUAH/uPERxjEYT5GNVzakNYO38pf\nkZKlVHx2VKIvJj2pa+rU1ggjOvhFrA36OhRPo7TQpIK1OpB7nqOYv88QUQW/\nUX/hJ4SWNDBp3I1exrgdUzQnTURLzpYVzK4VmUDRh6yXyn3N/65mzRqyAeeI\n6GTOXapAjVyA3xir2yKNN0pgh5ZGjE0i5FJSNX7fbVuKgnaRztNJ5epX3pJ7\nYxFN\r\n=3ErF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbl4kW0lT1NmCna5jaiKjsDvrC5jf8w0F5gH61Yu9z4AIgEgG+7WPbEOjSRPnTSFDBs2rz+zdPIRI4/6W+3fl84YQ="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.0.0-rc.11_1559315010139_0.6871247458856284"},"_hasShrinkwrap":false},"2.0.0":{"name":"@matt-block/react-native-in-app-browser","version":"2.0.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.0.0","dist":{"shasum":"adff5f2c8ca368079fa9ddef4412941d38c9fae1","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.0.0.tgz","integrity":"sha512-Vy/IAc6ei31GSJCkdy37JFdcgZd2UW9sTIjbX3CUrWo5P90SsC5e+gXaCLHFaH3dZaRr5ZOUP2g6Sz2yxCra/Q==","fileCount":44,"unpackedSize":115218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8UO/CRA9TVsSAnZWagAA+OkP/AqSpqV92e4E1d+06Irt\na5uxdcAFrrhtUxFdO06Q2wXedEhVRzgC/c8R6/cnXTVJz9BmK/US6a/oBpRv\nNjCUrmi1flg04k9Rw78F44ntxpknNj03EE9IMvv1jhjGcxDskkwNPM/zrq8J\nn04dNx9n5gpVERcxuGjBCYFZkUdqTuXARHq5jQ3dqdB/lBI1Yo32ajojoyxX\nBDIZPwarGBKCyGeNMI37v1G7mZlA2YOztvJh9+T2PqsDJTJaUMMHowNLU9rc\nyz7xeVmdOtBJWwNkJtfU8dxpIVovpUrFoFivFFUrW+BJRC1hjs4y+6jpxTf8\nrQGeixKh/0+FR7c0E68OTtAbZIT8FUEkgt4ZCnnNp+ZSwDd1XdeEPKAyecTu\nC4bHytINi+/qmlf1ghphRkI5lCr5kC8dElbeMHY0yozHEWAyDlVHxPwkXTFW\nkBwd06Q/6a6TlDojzNyVJan8QgL6WZtaw/4BGYqbLJsvp58KrRZSo8hgd9Y0\nDLidQUU9ebWDlfVv0Gt6E+Hra+cUczBs8AZWS128x7Y8Nx3py2ovTfsAmbnF\nOI2Kw9V1Gk/GHDaHU8rW/JQJBWrg79nWUQvsBOAVQDSU/5DcnjOXhnKKgRN1\n5tGU6yo+hGOtWuC+JLfE5Qj7T3K9XmvbKw4WE0O073b1m8yQNdT0IBezalHa\nM/SZ\r\n=QZiV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7IQQzdu8BkxFqQyMGd0BYf73QnpKISAMifU9yfDWqGQIhALYBtupEgqG0QwdqOaqQAIjCEhIaj1pqIX4S70yWBKkz"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.0.0_1559315390501_0.5873241148738948"},"_hasShrinkwrap":false},"3.0.0-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.0.0-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n|     0.60.x      | latest  |\n| 0.57.0 - 0.59.x |  2.0.0  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.0.0-rc.0","dist":{"shasum":"349eb4c271247f5b4352a146120eba29a4bac390","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.0.0-rc.0.tgz","integrity":"sha512-XaSIyIrX+xB0QdWGFKtUXqecrFHnUh05yD4c3ac9V3x9AZWmDuXL2WocUydxuiIVSUN3OEaUluTdjLuXyRJpLQ==","fileCount":44,"unpackedSize":115716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKcEoCRA9TVsSAnZWagAA1k0P/2Mm1wVHORm2YcG/2Sbc\n3z9RMw0bO92eGctZttwvLEtjq/rzCnnSfQv+NRrnjtpzfuyWRM9GEmdQlL0H\n4lVCbBjqWAejRcfRoeOHxvvD/hTqi196JYB5GgvCfyKLvXeo0mioqgdqi0gm\n1LyTShaQkCh0eX4ydf8WP4Sqf4KFDK4YzTp3aQuuSejwcFxhf3EKNQ05EAnH\nWhYnNMp3Lx1mAKAGS03bd93OmsC8VtSrUGnZqdEf5tj8azkO9zh+FiPDnBvl\nLI5civqNF8heeiXKCoQQLOV4vNUihPZnqwl7Uw32voxwvcF2nYRMKiIRFzIh\n4zpRHp6605POOXF/rulSnTPexwpVH+aWBAnFFyVMO3WXE/dX2rFj+v+Bypgd\n0upDfnY6+H1X6Wq1VkL+NJG+VPxnCcNaxleTVJA4hNIgnUT6qurzE7MQ5/8F\ncs+ZCCnLK5Agk1SWJXAxzd4PgmvwJbCzNS+qstHJA87Asgrp60bjw2ejxY1p\n5Ej6+kgUj4buvn8QZoY44XHBKih6ZCaKQuE/f76IJcbPZCeF+A6qlrOpmZg/\nvD5HAefbdNhA5fv/g4j84VS1K4JGMlzAYDs3aVSojCfuT/rr8Q8Rk6weo8I3\nK7WqTY8r3+daDQupi8NG2m58ipwt8sFaqMPLK15XzV3/RRQn3aYIrOLxFDc7\nAFAO\r\n=tO3H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJL2moxf0beVX3L6nb8aBT3rMuTwQ7h9+EvV+OW06ZzAIgFcgqd1uyyzY1+y55xqnBtUKKqxTGFfuH8m/Javgg1d8="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.0.0-rc.0_1563017511861_0.1779944032941827"},"_hasShrinkwrap":false},"3.0.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.0.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.0.0","dist":{"shasum":"a3070bfd76f51b5e1413281f1614bc71928c3036","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.0.0.tgz","integrity":"sha512-tPVGwR7DqIhIDLP+mnmtEQtBXoW/HUAVixqlZ723uDkgZ+m7iidHdDvrAWU1rq46Oo0Lzsg4RplPnjmmPD1HrA==","fileCount":44,"unpackedSize":115711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKcWVCRA9TVsSAnZWagAA9F4P/1YKCkPHyg0X+4Hanmn3\ny1K208YFq1KXuELr7sTW9MyHHe5dD/NGbISvoYuJGGFwULD0KL1V/A/ONv8m\npO9anTWUx2larDckaaaCPvtYy5I7e7MxL58tBvPjtXyQmjOj6Vvjgta/6qIW\n0kyc5pI0qksdR8gVAvJIbNIr3MjEVTwqo6bsbU59SufSSmrzdWn46fqcU9BM\nYH+2U0Aj97ip1MXBUzXhyn38TCu/tPenjMitCXKMiLTIOgpab+XQCObRwGjC\njKJmIK28fSdo6S6WiRm9zk38VuBUmTLdtyNOp5dIJo0VwpntZf6nefcwsuQw\nAKMg2bhu1phJUyxdt3MvAdjL75Y7qF+MXBJGi/p//6ABF+C2WDnPRqE6DTx2\nQRDcbY/fGhHsAUcugXsT41ownEVZZbOd9aLwZEQXchaQt0t/gF+tQQA6wDD0\nxi7jhGBEPIMFWL4fVEjt0CL+o3LO/XDZBMnyEXnXmfWNJiXTSaCbvgbZdMOT\nR87zwMymz6+/MKnDC+aVjF1hxQKf0+t8Jc+qU7VDueqd+dMG6UqSKNl7nvyT\noOckwmAB/V1X55llBa/QwRmM2mxVf5GbkA1+0UnxyPwSECrjWgFWv8XEWnwj\nU5AJVKQdofAf1chvCYCfh9f0c3oNR11dM9zDOWlYD2q2WWvSWSS/4n8wBDMO\nyRPx\r\n=5jj9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDdh6Tzgel063fE93npSjaQUgIZJ38nZkhNTLUYrJU5pAiALV0iLCCuLXgNlkoFl0Zt3lCInFDsw2/pHd0AIWvVA9Q=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.0.0_1563018645208_0.3727266066409094"},"_hasShrinkwrap":false},"3.1.0-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.0-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n|     0.60.x      | latest  |\n| 0.57.0 - 0.59.x |  2.0.0  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.0-rc.0","dist":{"shasum":"b4360f1576188bdfac13b8d5aef9373501757d43","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.0-rc.0.tgz","integrity":"sha512-Ta6q+UZZh0OPwXCWdSb6egNH9ThUIB3hK652ECZUe7F6P+7of0+ezjVd2LtK157MSxc1yBxIUgbi2KccHjg1KA==","fileCount":44,"unpackedSize":121322,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRYCECRA9TVsSAnZWagAATvEP/0zaGA9iVlnSad3QW70C\nM9V0gIS5qX8Z+hHdtrKLJ8THJCEi52mXD4gMOFPXMEV10zT/FRTQYCYpxDTd\n2BTOsJ18O7/FZtRHSRS+YnggyUzjqNz+JDJo4Dnc13330H8LdkiQtnPk0JhL\nHHvTSHlPiGN7vxItttZMilgVkCwfJaCKeIag8bg6IX5UgQvvgI8Nw2QuUpCu\nTj1bB6ANsrJISG6zaG+yPxFXSllP+sL1s99jOYz72IOCcvherTlH7EL8m27U\np8eYlnbe52x/0IeWlin+bVzpxFTen83lLeghq2xY32w7Bo8BFKj+L/SqVhXv\nKgJlicgADhW3vKJCbGLLM3Q5fdSyUFQ2YmerNLOvqoiJBvA+dgvfeSXVqVZf\nazjwjtvt0aoP9QUfZTeqK5hLWMgrTWCrop/0OtKIt9wROMbphRDfy5c1S4v7\nVcijFZ3fobT40RrP2FhBPscdsjKFs+bkirWhctJRZa7lEN7VfpbMUediCBxy\nRDKTTVd4vB0ZoBhOJgV73btIzp+rp65bRWntoSinSLLYAWD8TDESLbHdu4ZF\n0Q7kU7FUJ9YdXBQTghwyiz7Cp6xCvGVcGMJXXFqRkATbnajghE4Eu7Qbbcgs\nLOeatNMH93fHVtKVZqHTAUtNs2JXItN+BHP5KqA3WG7CkU16E+4zJOzm4vdj\n8QvH\r\n=yQQf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwf7QmYJ5cbtfSNBQBpFOAHnkGTihdam7AvqtvARW/YAIgJqGILbGXWZi0cgIO4moKSD6FeodgmfvAOUHhtX+M7+E="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.0-rc.0_1564835972224_0.9412161421767016"},"_hasShrinkwrap":false},"2.1.0-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"2.1.0-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n|     0.60.x      | latest  |\n| 0.57.0 - 0.59.x |  2.0.0  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.1.0-rc.0","dist":{"shasum":"bec5d22b9af9e1c40a8f9516f978a3e223476b8e","integrity":"sha512-Ht/KUtWZnvLlfU7zLssfqpNuXEAQY64qhBwPC11wnLd4sZVx9lQfXgjqkM5N9qaCrSTKyx9Y4xeqANeP3QhsYg==","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.1.0-rc.0.tgz","fileCount":52,"unpackedSize":123208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRYgWCRA9TVsSAnZWagAAd2gP/1fxcyOVKVh+1dKVgNJt\nmB4WndP+usiJo5vS94UI5OYybvt1zGq5JwhiN89ddGCZUUhWFbO4SSf7UczG\nlf8I8fOonGjcUdxcaoOlVgtqCv5W+nb5u7XQi8QQYpMqXwnbAYTEVeDk1Lyl\nxXTLW9HrfbKbD3icoKuZgR8J0RmjncSbZ7VnjbisxZdbVha+EYaMxzLn1ISC\nd0WoasyhVjaHukXISsnx1dlmd57nEF6vEZLBGrUyb0tVYCU7TdC0uyntVpQn\ntA/hpXQRiGVqoSYK+T/ivydrIWVRIWXurVsdJObKCX/xqz+qy0gv5lFsZANT\nCuZZewKwtQ5DGE1LqziKCuN0LlulO0IebbIavBd43hAzGDXhQgvE6h9b2exb\nA04+LbxV0jON3ooOrkbRDOJwtMv5DH1hxKWHa8yrA3FK8yrz0AbOWq7k03bK\npb0rwC6ArqqCY6EsyTrMpG6aNx1cvQxYfw4rfXwFjeF5fvS2qZ+y4zsIklSB\naZS0SW2YN1HyudGNwUqtyIq/g2FX5FNrzU7oLYo+NyJEx23rfXWMrLvc0DMi\nu3Ra03IhNUJS72ygYgbvvED7PFcUJjl65VdfZj9ziKHVABga5QBYW76/1Y/O\nzDmar7e2smqlrS92Bd+mr8q5Wp9ERyl92l9X3meOd4iTkaPWmeSv+Ph2q0J2\neIDe\r\n=3/Nx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+IscCsUhnVsrjsneEt+AnrGlQa/jZmfjpIIvNZtJ8zAiBIUb+1Zo9yloVJjehFfEDXgEt0vUcXzgKVpESQ2PZgjg=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.1.0-rc.0_1564837909976_0.6752447961644583"},"_hasShrinkwrap":false},"2.1.0":{"name":"@matt-block/react-native-in-app-browser","version":"2.1.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n|     0.60.x      | latest  |\n| 0.57.0 - 0.59.x |  2.0.0  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.1.0","dist":{"shasum":"0e9f07b7810504b4d67a10c57585fe74d29779a6","integrity":"sha512-EYBI8PomP7/F8TQRcK8v9QvgKnIOv3WHHli6J2fT4+eGpMaJB1b0Pm6cU7U58jkKO+bjBq2d8g3Hxai42rnPQQ==","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.1.0.tgz","fileCount":51,"unpackedSize":121317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSSpVCRA9TVsSAnZWagAA0L0P/1kcvjGZP3gcisTnEdwk\nvxiakLeNQsZGaZt37kGri91alFW87kN02WDY4VLagFFPpLj1dT5LdCS681Cn\nlKL7Ga56XA9T1hHHXD+lznX8SUVc8WmDaUB7B4r1RsMzFkdzsVWsrB93nCAj\nYjZ/a0unwQDxn3CiHzuVJdipYxNm15KsMKePtA6ryYE4MYT4JwYPrNpwH12C\nIVU+xQrpXu5mboANt8Vyw+7s3ApnSr826hgtgzHwkxDZX34oBn5PclKvTlsc\nkpZI7ZvZ1ngQdzWHmauMYrVXbCugBVSb4hiayuIS7+1lgyEm2KtGsO/an77M\nDbm1GoUxrbvzmVYMmZ8woXdcfD9bvsi9BlOvdSXKwAr/J75UZCHwJS/0JaIj\niTUvByK7I5a5hvHd3tJcv1el5G25VLB8Ixpo9db5+37CTT1fi+rdCqaUFqeV\n+5EI7sVKGDVNiP9g3i02mVDdTJU6zqyRQKzkUMZVjzo3v5V/U9XVNapyYif2\nWNo/giYN+8rZdQxinKdpJELFOhjgex5JwwPi1FiUk4le453Tqki4tW+hvGAr\nIsw016MCE7hrX3ItZN7Z5dVgE1rVnBmJQMDWKQSfEsthEHw7A63AugoWiJ4U\n6rYwN2ebgVRZoK0xJLo7Ap5kwP5nxMLVmanF/FDEVvvhjj6dWtzrf1CGDrwP\n0H3p\r\n=eVES\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBkGw/EfuA5zvyKjZtuR7nYHpAAM92+F2F78RaqbNkmAiBeoDk5YBYdP66cF0RprPOOP077FdngKc7sxaIG0GsSiw=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.1.0_1565076052155_0.286665197665406"},"_hasShrinkwrap":false},"3.1.0-rc.2":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.0-rc.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   |                  Library                  |\n| :-------------: | :---------------------------------------: |\n|     0.60.x      |    [![npm (scoped)][npm_shield]][npm]     |\n| 0.57.0 - 0.59.x | [![npm v2 (scoped)][npm_2_shield]][npm_2] |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.0\n[npm_2_shield]: https://img.shields.io/badge/npm-v2.1.0-blue\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.0-rc.2","dist":{"shasum":"07a49239d73987b1b6f62563fae67093024ca125","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.0-rc.2.tgz","integrity":"sha512-mn657ZgGCnmbzaXJlKJvo+sI8wvPBhSNePBBT6eOPHyYkD7WY2tC+6QBoUMh415pMAXq7itVXYNRWDmfExcQaQ==","fileCount":44,"unpackedSize":121606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSTB6CRA9TVsSAnZWagAA0UsP/Alzbzr3t0lrQ5p+QmXU\nEuBFr1Z0OHGyTJmkzhwaKjXNhBIv1PaREQNXuNVtqq2fWyKL/gLqG1T+sCwE\ndEnNeCXLBfow5YmoetaL8kEMZ1GovDPKFeJekXea/Sm42Z8ratCwEQ5goS9W\nOdpOZ9W2jd1oHBITExbmXWbEfhzR1yEvUL+ioX+9mVNr1BzlNUABkumVPb+q\n/Yjkw3v/KLGXTLobPVwRNqTAX9pdcAedbgGaLJ478HvczVl1otOi7Yx6t2MD\nx8AOpcennLAztpihrJ/y0oilaRw+/xP/0O9HGqCkbVbUAdR1TY5Fw2hVacIK\n9WTlmPquIxBMltVH5sDK4EjkEzsuHr2egRzJ7k+7rm1TamSQ1BPYulqr+DzO\nuEfgTOtNggGAEnFr3W97sEA0Bb8P1Z5bo4dgQ3ICt78uY0r6jpB7xAGq+CGK\ndvhNvtG4gH3JTvjZ6OPCK0ATnY/TJu9mdImfv83EuqEtfiy4PW2bQI7eN4fB\nMzJ+ywKbalITe8sk3telGlsLtfZU7PfQwxbgSefayrHwulxR8K2HxI+viBNr\nyDH2Yj9yGOlcqufLsyyhJiSTz5zDZ4ueUTEWlY9HaTIbWLCwmh/61G7QSXC7\n45Due+pH8AFxPHgciMrJ3dTVoAPh1vuNDcCt8C+qlktPNzNNjrG+3mgAUoqw\nSaDK\r\n=X56Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArxW6DsshqkGgM2GxuwsaMYHYBDofj8cg3xoFnelKjiAiBhzTb9WTTts1/Mtvynd0pqwWKpiMYjWbEMC91u7HO9KQ=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.0-rc.2_1565077625532_0.10784335890941321"},"_hasShrinkwrap":false},"3.1.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.0","dist":{"shasum":"7eba6638d12643b27d222668f4bc2c53f92b98f4","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.0.tgz","integrity":"sha512-vJuwZ2VRSGLFw/5Xo/7VBmMN+14flt/W59zZahFaoWaLtinTYBRGYCU+Th96Fg6WQWCPjwkr5LHJXKjPPafu1w==","fileCount":44,"unpackedSize":121700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdST97CRA9TVsSAnZWagAAMOkQAIetOTPrMVGim03bvL66\nKDgQPd/Z4RI40s0V+kfOWT80KR4rKlRgiww1Nmn/o0mlvd0wbLajQow9dNWf\nAfE5hj6gJedSywV96qhCNOAQyhtnIrswiWnP2aopUGdSS+EdBjjqM3obahR4\n+4j8BqjfVzF/jMVj+Jo2adlo5yqfVvofd5gWHr6qSmWb6wmo6a43A2yTDX6c\nZU9EETwYTFjmruvXc3yYgoZSJaHEyUR9h/YbONC4/NMG78D//k13uUZ81h3O\nhxddHFi+aoPl/8PxPp9YHEugcwXP5XmzYHp576Y/P607hIjbjkJ4MAfGU0Bv\nlbML15rQguzPgRD+WfFBny3x//I053AER3tJZOgxs0p0ANzw5jw/pbpXTqbN\n85LRmCXe5/xYbrT11KmJvwqtrRS7dg8FAEuoJXtCEpX87Fu2cJvzjKBFe26d\n3HXi7iNMwdRct0eWJLdGqvK5jMJIx21ZdccK+Uxf8YbaKAawTLUNGvzdAFL5\nI5wAogTA+a56BMUQkLwAEkieTWFMomGi1nMFJ313+eJ22MrTxHUiHgRRnufc\nKCyNRNh8An2Qz5AGb4IrsEvYbM3AJz0Q6F8GlYoJ5t+MqsA8FLQvFMJ8O9pq\nmUmlHxXk6Gn5RdUxUULJ+PFlLTmzx3ou4AcYYE3DQ1L2+T6Kwd6E8waXr6d7\nLbpN\r\n=zE5x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbubw/Gj7YcAAid8kM/HWQpxyvTDsOH4zibZ+9EKDELQIhALsWx6/t2n6lOyxjcNenXc/1PDuPMBcFZRsqSQ+3dHKq"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.0_1565081467293_0.25743956306590654"},"_hasShrinkwrap":false},"2.1.1":{"name":"@matt-block/react-native-in-app-browser","version":"2.1.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.1.1","dist":{"shasum":"3109e9b5bc19bfae8ef7a9c7020c3f84d158a6ee","integrity":"sha512-8UeItuq4Q9p+R64N8mKmUxjBvO4jWGs8K7iaVjgc3MHbmTqvrAXgIny9H8/zlXZNgcYbSfxqWBOj9eU2NKTNPQ==","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.1.1.tgz","fileCount":51,"unpackedSize":120983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdS88XCRA9TVsSAnZWagAAeHYP/0Mn4vIHE3/NV0gB0qh/\nejsbHyk2t6eRP4eAyUCS8tqyBuTdb+gVSzMZf4LhoWZdsSc05yW8G7lcgdNh\ngtC+JXb+FjfieYpB6kapqgyjB5xY8nosKlC+1oY/KOVi9itdlY3K1wjRy4Zq\nYOnkD64qULvJ2g1frrsu2dwV51+10O+QWvKjRwzqLka0L4lBRMNvLZT/MYHE\n11S7G6lhp3kd7QorUbCp7Rk6g8pShFI4ssmwmPNJts0OUprx+Ulwlcg3n3SG\np5Ft9SFFNc6spNcwnIJBzRiTJeNQ+KMmJUO6rGFk8zrIHX3VPYCnnstnJZYt\nyZIQM+vnLuSYOo8aMXS7MVIATi7vHd8yPmwchWTumLRpUgz/v4mHqachoLoF\nQa8WGg+Ru076efB5TwfU0rf6LWlFi887lQtHiYS15MhY6/PlXluiaWgCupic\nuvXG17GfwwlVzfuKHaU1kDZsHwYPzhTxbeHE/8j1zg9vvNlkE6HZ/cBN7Cax\nRCYaqQYZbY2cu21YS7jz7XhRvlpTWqlBiVA18l+Ss2IhwX9Ld5M9lJj8OTAq\nVjpJCFqLXXomnHf1Kd6NogjZa0a42NAgxUUZk1i1vnA4EodfrQrWylk7RfbU\nsQmVvVx+OFmcIUEJRWYXxJyfBtzHPO9QcLME6xseSGGXP33ushlXAGlveEVF\n0zEu\r\n=nOGG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8e+dm2DXKcdgrH4HFxW8agNEbG8uQbc3Vx2JIOaEJCAiEA0xhbwTFGltgSnhMTi7W3VNjvrYFllc8+22pHQIDDLes="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.1.1_1565249302278_0.9309677549910915"},"_hasShrinkwrap":false},"2.1.2-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"2.1.2-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   | Library |\n| :-------------: | :-----: |\n|     0.60.x      | latest  |\n| 0.57.0 - 0.59.x |  2.0.0  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.1.2-rc.0","dist":{"shasum":"db3a41804c56412f128a3d7c0a18931925dddf81","integrity":"sha512-/puLrE2+kz0Eps6iyuS+UZuAdx8S6rST2kWeABVCWAtQ+D57DPA2oWQLn0w0El1EWJP3ljTBuxPU0lxHQz9McA==","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.1.2-rc.0.tgz","fileCount":51,"unpackedSize":122831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXAQGCRA9TVsSAnZWagAALusP/3vf8ZDjqRvFqPAwhAuT\nNfRqPS11Tu8pUvPxWzFQbw7EhrZ1ZBR3SGue1tBMc5joFue9NRWzDRV/zvKb\nAPxg+KWmJp7s7KCgtfTu7BV5gbwr8mIZ1/CztrHCXRSd7KNSguKKQokngcfk\nIVfoGivNcE9wWMKOGqu/WYIIjUjNJhZu+9BzQGVqXDV3lu+dJ34IVRbZIzn3\nY5bK2q/3QNm1ibR7X0j9fv9VT5G5hIel0RK53Lqs99ltwQF2eIIK/HuyCM4e\nHQFK8J9/goZrYXgw83NkgCXbthxCmqj1BYKKunloNl5kjzBIMKQZHJnLnLfH\nfHP58YtOm8OxigyBIEFTBVlPE4GU+v9NmSNJGBxxjMF6fjDG4/041y9v0JND\nEUySEAAOXL6irPyRPYjBqED/b5SRWgR3UKPVW+mZGH4wTd2TG6ggng68LabJ\nP2QNj/w6NqsC4Zj//k52f+fxcmlKLzJ+DpsReKZmiBjasGUtsivNvy73JNcL\nSNpzv4W31/5Uiyh+HSIIiYGZTBGiHIHPm4bdLp1309HKopjB8k4bV0q8UDJu\nm4k8oyf8mFqaoNmaDdERbgE3FeWMeRxf5klcmxTEXIEfGH72l587NN30W3iT\nQah/JyYb7E0PR4XfZgx5YwzS+UkT70PT5B+K2x/RE4ReWS2NhFZlht3x1489\n+vaI\r\n=p821\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAVJJNJfnhX9oT6e9WaBml2eueDBWiFr4o9o8F/uV4MfAiEAiyLn+B9o5mwqCWSBcdRP72VHolWJMor/HOGoFGXXpsg="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.1.2-rc.0_1566311429136_0.7284282578844079"},"_hasShrinkwrap":false},"2.1.2":{"name":"@matt-block/react-native-in-app-browser","version":"2.1.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|  React Native   |                  Library                  |\n| :-------------: | :---------------------------------------: |\n|     0.60.x      |    [![npm (scoped)][npm_shield]][npm]     |\n| 0.57.0 - 0.59.x | [![npm v2 (scoped)][npm_2_shield]][npm_2] |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser.svg\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.2\n[npm_2_shield]: https://img.shields.io/badge/npm-v2.1.2-blue\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.1.2","dist":{"shasum":"3f4e42f5c161e4df26cfe54a35b9dff68fce4960","integrity":"sha512-kcMEKtWQPjrnIzp8AgCyffZq9KnmFV6Zc+GtgYLsTAQqddRzoFhQXPJqE9ejCZDQzu7TzsXZdzNEFwv7khZebw==","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.1.2.tgz","fileCount":51,"unpackedSize":123209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda3dHCRA9TVsSAnZWagAABsgP/1/KzLHdpHynFAVoD8LL\nB06Wb1TnM3+b80ngdaE2di29BUBMEoD34Ln+c9bHvEw+gkZJtWT7N0qrlYWs\nF65BJeUfgKo22jVwPYPIixHF41uRKF2S8fckI+YQB3KEtyDCk6edBSaTbPeM\nMpIZrZqG2qzF8DW0lJJ5FN8tgnIaVMCsawUhF0vw0XV2FtOW/8QWfajzoBLu\n/mvLsx37HRmNtgPnLJKBE62eXJdL+Afdau3IDs6uE0yl3Eykffdoz9szzCdM\nHvprcnLUQT0e7kTP0WtJpua5uS2aCmQVKxDu66SL1xqnv4u3YKLNGKC1wb8Q\nvluV2t5XoQBz4yvRiy31HfFsiPbVvDkU2T56gdyrcnexFatulW4bSBK8sMIC\ndimcZ/8ldwML1hYy/BAl8+djjkAy7RBajRDF8EKRn5UelgyFeZ/GZ6yMqZMw\np4cosSpyJSRXB5qwZRoYhY5Jlbipfngo5iML4Bvw+6K86kgWgG1hJFO4gbiP\nuizHknEHVFuWvhtMheqqV/kbgNRnx7u/mPLf89QAZTqJXrAjBHRIREziHUHz\njdm8KToenCawbdw+e1zh9TFqA4teMeykXq1epfRPsZ3x2Y+BZhqRRflClBwW\nEi9L81Axw7b4a6UvHHsoSzgDvav9gK20uUzDudf/68ceFtWmQmG/LcKqOM++\nZzDS\r\n=RkWv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3QnwNNXItongCLaFa+mrmvP+c14mDKDhdAwZhX+aZdAiEAjpR6gf8H0ckw/etpMRv6d/6RJjpKFNGyVVpVZY2waXo="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.1.2_1567323974929_0.05623426153379052"},"_hasShrinkwrap":false},"3.1.1-rc.1":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.1-rc.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|   React Native    |                  Library                  |   Status   | End-of-Life |\n| :---------------: | :---------------------------------------: | :--------: | :---------: |\n|    `>= 0.60.0`    |    [![npm (scoped)][npm_shield]][npm]     | **Active** | Not planned |\n| `0.57.x - 0.59.x` | [![npm v2 (scoped)][npm_2_shield]][npm_2] | **Active** | 2020-07-01  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/latest\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.2\n[npm_2_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/legacy\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.1-rc.1","dist":{"shasum":"7d6480f0cd15f53e476d57859f841538f5a99255","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.1-rc.1.tgz","integrity":"sha512-fF0LS2qqDM2+sxzlqbz3xjEEp9ETbuM/CaldkTqKjeRacHc3SvpqykzYLAeAdhkVEcGS+tLqqIF8jdIKVLFyXA==","fileCount":44,"unpackedSize":122362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda34ACRA9TVsSAnZWagAAdvEP/3O8uNAuU7lNOj5a/z7B\nYmhbWmcXdTsfo9JVXm7RiaIU/fhxBaYbt3IOYm2FFSriGUjZfWmlVvb5MrPW\n4LaUKfN3ASD9+wAVLLGbDN3KNZyuhvcEcZr/+FGzPR4QUl/XlUcb48H+vOtN\nDULbDEpt3DJLSJFoNQt64ITU9eKqhM25slTG1+PaHSnoKYHWpLeguCfP3qLO\nkvLBkw96tURHvTpds40CAQ1Tyq38jwZHouE2TO04iFzkKJ6uZxIXBBzlm7Nu\nqMByBMBFmfAm88BCX9yqDWpNoPadlK4UI6val+m3COkXv4R9LubFbj+5sY6I\nbsI8c/lHHLPHwwfDnp4JOyQ1eqyImIuVKIXlSPLJsgdz3qEastjgsPxwDrFI\nQbnLzacSB5t/RMe1PLvc7nmuA40K7EbCj9kBGdQtIOBe0lD1isGL6QwYzOb1\nrgEuoJpcasW/TiM5r6psJBTiPnSKe+DfYSUdqqHhib40tv2FKyQkync4tkvq\nQnjseq04VgpvcqaWppuYl72/BOr0+mo64FcWOgAaTmDT7O+VNnjWs3zp5UmI\ngL8OcwUqEI7UMgkK3+96J9xKliG6jL3Yvzb9KjDBp+e7fJa5BkiT2uefzZ9e\nxZM6+MqAsHqxYs2kj+0TYVtM20VVPGE3AIqWettQU0LcMUMmFM1IWtHejW5w\n3b2z\r\n=k1Or\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCR0W6nHu8wq5waOggtPjSHvw3woANzgz61FnrN/5wVuAIhAIuyP+JUJO+UqEbEBXsVu3SuZmxD9bTx42inE0nscJBW"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.1-rc.1_1567325696148_0.8459938711768722"},"_hasShrinkwrap":false},"3.1.1":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.1","dist":{"shasum":"d6c8af4f77f60905ee342363acdac03a1de718e8","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.1.tgz","integrity":"sha512-ff7avo8EIgwl+JqP6dsWY9CbC8yCjS60tAXmBBuJGzQPqDItkGVhq+5nXKMJrrja7uLgGma8M9vdCx9h/1HChQ==","fileCount":44,"unpackedSize":122357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda4E+CRA9TVsSAnZWagAAwfMP/2PhWxil66Te+WlewZaa\nEygC7TVn0s3TswFG7dQOmF8AzxBUh63bxGSqTTd7q9sbE3Nn+hPDjFyMzDfO\nAFqsMMxh/2XzWDF4KDhpbG3uerT/jAIasZW3FoiqbFR7Hk+KbGG33PGCd9Wk\niYiTv2lbC0yxQs9ucS7W16GOYF3CEe3rhMwtUeWcqzbkSdX4nHyVetckfAut\nDoCMNmNdguKaei5q5vDv3tOenhiziMf13gC2rspzIy0sV+NEGa1JU5x3J4jE\nhrnXK8J6x1kFrBzShZSAVUirYwc1muvYmYLUuoE4wHvMjqjnM0vJ7HxKmgW4\nIIanIhyma1i9BAt60p1szvoCijML3/99lrbQ7lgD5Sb7s2RkNH8AUBCSqPb4\nVBMnDxgl71/cdwheP7NjVTM9biXafauNiGtLHIPbYIl4g/Y6zbidufvjKAju\n9pgyFfkRHpu6z7nJOq921u6XQrdXtZP4yN+5pB/qjij3XVUoXVmwhH1Ml39K\nsBi73YmTHqHjt4ohfYLX23BErlSe3JVUYu/8hFhLB8KazmlxGzDnmcrztBtS\n9+Lr67NJyAZmxmRXi+/AI/A9WAHtXmBz1ByifSDFMFEwK5PPBP80ji7Ogfxf\nWArGqXvgNdAhc9pZaECH+pGDSzsqEd0ir51MlbMYQ449t8qIq62jBmA4lNRa\nUYWY\r\n=qzYB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBa3cUyiT2OdwlmO0wo+PC2B8gceWoIf75fsHcgXT2tgAiAr9OHMzYypkTaObAtGIQAZzUJn72typjPiDy32kjtZWw=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.1_1567326525513_0.24943691004587842"},"_hasShrinkwrap":false},"2.1.3":{"name":"@matt-block/react-native-in-app-browser","version":"2.1.3","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":"^0.57.0 || ^0.58.0 || ^0.59.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|   React Native    |                  Library                  |   Status   | End-of-Life |\n| :---------------: | :---------------------------------------: | :--------: | :---------: |\n|    `>= 0.60.0`    |    [![npm (scoped)][npm_shield]][npm]     | **Active** | Not planned |\n| `0.57.x - 0.59.x` | [![npm v2 (scoped)][npm_2_shield]][npm_2] | **Active** | 2020-01-03  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/latest\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.3\n[npm_2_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/legacy\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@2.1.3","dist":{"shasum":"f9ef1d6e3afc55598c2f9895c24b7ea82e7525fb","integrity":"sha512-j/Ql4uXrvOkxxVKAb+1GHuMoeRDBl3Y/NwwQ+NlvsUeoW+bXv8aBzc2aaPJnNtTZDqbvv7aa3u2amUU7eNInBQ==","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-2.1.3.tgz","fileCount":44,"unpackedSize":122378,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqtCiCRA9TVsSAnZWagAAlygP/2uSNNBkeOGyz8ihbgSj\ngDUA1nHhJCZNYo6EqBifs8loMaVOBw8cPyKcbQjcirqQq8UzIfhvwQM30/T3\nBjphgxmJaqyt7dtqC6m3NFqLsWPew/yiYHlAF/hF0IUsmSFBubwgR1uc2/Mg\nF18gtTUZRV0QtUATBMBG9q4LZ5RdouW2GYKvXKnZEs2XQRgL7+M10te7x0fJ\nPCd5CehLEvCmlSd61nUH1iCn3X4ea8ZLZL4u0geETRU0zUULMN8v/J6GLmXr\nMkrP9E03EFyfumyszU1f6Ev1+jb7Q+lFB7vD/bPu2WxSyiq03PfKR/pJjf+6\nBq9/TenbSa2J9ETKCsYzvPZ3EaOZuOxmtX15ZO029IC8QeRI1NC5yWmzmtQ3\nIHJFTEkL1190HPDsycqz+xS8+puK5quThxWwHDBqmhYcnAazZmvNLSPAXFlS\n/LjzSIwo/2qsMsfmrtXDHqy8yoQpUvb+7tk0mXAidlBhxsdZ0XLiRjj+U2oq\n4JSRVw0VLXQMWFAjuB331t6gN/hMj5/nzmF7oV1rlHAr5pwUxJ4GR3a56uE/\nLpC2Mqt0hU6gErUkV71dDunyZG0onrpG0quWxBXfsG/jDQdx1gzFmv4UWppP\n6f8GyiI3nvQqNr7feW2sI5YgiQSk00AsR0KvPGZc9KEwib4jZBSUnjemrq3i\nyQQW\r\n=5M6x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpOD1MB1hBOX385QHDHjhmuulEwiOjQQWpgenXnRpb9AiA4EOMSe9ZrDMB3zrl8kzNM8z4qPDZFXe5PN5657jx6yw=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_2.1.3_1571475617337_0.28168180335220505"},"_hasShrinkwrap":false},"3.1.2-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.2-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readmeFilename":"README.md","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|   React Native    |                  Library                  |   Status   | End-of-Life |\n| :---------------: | :---------------------------------------: | :--------: | :---------: |\n|    `>= 0.60.0`    |    [![npm (scoped)][npm_shield]][npm]     | **Active** | Not planned |\n| `0.57.x - 0.59.x` | [![npm v2 (scoped)][npm_2_shield]][npm_2] | **Active** | 2020-01-03  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/latest\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.2\n[npm_2_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/legacy\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.2-rc.0","dist":{"shasum":"c9ccef671728ceb2e93043d5344df5b4fd48b12d","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.2-rc.0.tgz","integrity":"sha512-oMpdyiaDggIuyzxgGG9MbWMIwX29USuQZwW62BXbrlikDaKkE42fKyhxC7PT1i0WEn2seDpdWtoB79rcFuacCg==","fileCount":44,"unpackedSize":122763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqtKJCRA9TVsSAnZWagAAb08P/jT5f2swoN3wXcsnD6T7\nviF/kTWi07iVdCo6INSv6wYi5BHbE5vmyaa3KF43njoFByA9sfHZrb77LG0q\nV5YcD9IbobgSIrcNLIm8AHVagvDMvyZi6ZUw7P5V5uZPkfx+sLVYlT882OPt\nIV7uhamn9zP9g3Hun+RrPlkFQXXadyne0EwJsQkIFgLio7j9eqGwAMFLxj3p\nkURGQnanCqi1GgTQeDbhaPiejGr3iiEUNhUIvxqAr7M9gCX+Ly9x7rTVreiq\n9hYoPay4vx51Cn+mdqptMa9Pr53EkV92hFZ98cs+we1jW8+oiE9J1IYFHQNW\nahrAfTZRBvJa03b3L3UtNDBugRuq2KbH9meLg7fJwt84nqkQrj1EcjEjqDaT\nEjXvcAAt7ILoKJ+1FMFXTTDWZVxlPnmPq+olTtJYxivN4p8VJDhJbnTCJVQf\nmG8x7GpY66VsyrBdmJod6QxcrAud6d4N3EwSo9hpBbLZg0eSPJn9mnn7HMEm\n6x1Fx9w94OH9/e74wJj9V6BrTmdtPbLNjjbmREZs02puEvzkvVVI/KXgNSLR\nCHo1Hny27nnkrPC+IzUB2mCceXAyNvnM+uE24JM1P4HUryKLQO7f0BoQ4iuw\ndqm5VALNWdv87O37kMOqvujgXd5JwtiQaDhwqPfAH8gyRefwFR2yPN1iZmnC\nMFXE\r\n=P9/W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWjrKB/TvwOOE2jO6s1ZrGAtlzwZJHN/+lPADAzGWUiAiEAptZEA3LOvTlmtj2V1w0jh9POIckzP1tQZgqA0zI197Y="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.2-rc.0_1571476104383_0.44277745237564337"},"_hasShrinkwrap":false},"3.1.2":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s test build prepack:script","prepack:script":"ts-node scripts/prepack.ts","postpack":"ts-node scripts/postpack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"run-s husky:rc-bump husky:lint","husky:rc-bump":"ts-node scripts/rcBump.ts","husky:lint":"lint-staged","create-release":"ts-node -O '{\"types\":[\"node\"]}' scripts/createRelease.ts","prepare-release-merge":"ts-node -O '{\"types\":[\"node\"]}' scripts/prepareRelease.ts","ci-publish":"ts-node -O '{\"types\":[\"node\"]}' scripts/publishCI.ts"},"devDependencies":{"@team-griffin/install-self-peers":"^1.1.1","@types/fs-extra":"^5.0.4","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/shelljs":"^0.8.0","@types/tar":"^4.0.0","@types/tinycolor2":"^1.4.1","fs-extra":"^7.0.0","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"1.14.3","shelljs":"^0.8.2","tar":"^4.4.6","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,flow,ts,json,css,md}":["prettier --write","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"licenseText":"MIT License\n\nCopyright (c) 2018-present Matei Bogdan Radu <opensource@mateiradu.dev>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@matt-block/react-native-in-app-browser@3.1.2","dist":{"shasum":"25442ff469294849a6b0f038f9e3ba59d6b06753","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.2.tgz","integrity":"sha512-z+jqSdi0pycPMYhUWIOPjiEHzmNbzKlvKYb36GyuAztGEhqchJAs6PFwH/3HLrlxKdv8zd/xyRckMGdvHF+h8g==","fileCount":44,"unpackedSize":122904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqtZjCRA9TVsSAnZWagAA1q8P/0IJUJnhH4oWkyL7JusK\ngGPD+gtr5ItAGWL0U9f56SlvIAFzzKKtWCOyClfpZin4FOMQR8+9lrQWsGfg\n0nurEC/xVqkEd32sax+Da+Bti86cASVqdaP4O8PYI4NAUCEK4HAoUgQmn6NO\nWlSYGICljdxfMSIarby0g99o7HvT0OKy942QmMfacitNl61AP+S4vO7Luv54\nVsnOm+Z+uUHNHk/0qa8ltTtxJtkNafzmdbK7J5MkYekDWOHc9IeiG4r54c3i\nxdeXsnB46mFwhTE6WnHtc7d6DwVjPtw1UJPODVnWwzuU+S5O7+tlZCP0wkRO\n5WheKRk433DsqicMrUsPqu3hBmNj4ld0tmOAjki3Pt/A7TukC3QCWSM3L/Yy\nxR9X0CN6Vj+7KVCQik6z9vMkRXYnw8ulMXjUTNV15VQGe8kN7YTV9riYfVPq\nmxFk4ZB3b+PKa1CV0QyUuGjWsM5B2CdaGiYhYYyurDSy1aoSvcBemgYulvDD\ncfVOpojTCSnYdVu4WX9jKq4/KAVUwxMVaMoTPnGyrjncIgzGp7EYCEMko2Im\n5CHWqOO1nolZZaUTE0mFHoOoPunua5zNGshfd0B6CcPpT/PZs055f7/2QO2I\nDrARdF09FM4RtXFlFyTO746h7x/1zjPZesPeyj9Y0PgZc/ZUgKT/XgM7WZLG\nkMQ/\r\n=yFRs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/uES+IPV3gMtX95qyFsIr5GmrnMsJe5bzco9keA76xAiEA5RfRuVoiTgHhJxWNC21YK84YZSdc5+ol2VYaEUswCLc="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.2_1571477091202_0.8832769392499138"},"_hasShrinkwrap":false},"3.1.3-rc.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.3-rc.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/matt-block/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matt-block/react-native-in-app-browser/issues"},"homepage":"https://github.com/matt-block/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"jest --config jestconfig.json","prepack":"run-s build prepack:script","prepack:script":"ts-node -P scripts/tsconfig.json scripts/prepack.ts","prepare":"install-self-peers -- --ignore-scripts","husky:pre-commit":"lint-staged","release-manager":"ts-node -P release-manager/tsconfig.json release-manager","validate:android":"cd src/android && ./gradlew spotlessCheck","validate:android:fix":"cd src/android && ./gradlew spotlessApply","validate:eslint":"eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"","validate:typescript":"tsc --noEmit"},"devDependencies":{"@react-native-community/eslint-config":"^0.0.5","@team-griffin/install-self-peers":"^1.1.1","@types/jest":"^24.0.9","@types/react-native":"^0.57.7","@types/semver":"^6.2.0","@types/shelljs":"^0.8.0","@types/tinycolor2":"^1.4.1","@typescript-eslint/eslint-plugin":"^2.5.0","@typescript-eslint/parser":"^2.5.0","commander":"^3.0.2","eslint":"^5.0.0","eslint-config-prettier":"^6.4.0","eslint-plugin-prettier":"^3.1.1","husky":"^1.1.2","jest":"^24.1.0","lint-staged":"^7.3.0","npm-run-all":"^4.1.3","prettier":"^1.18.2","semver":"^6.3.0","shelljs":"^0.8.2","ts-jest":"^24.0.0","ts-node":"^7.0.1","typescript":"^3.1.3"},"peerDependencies":{"react":"^16.5.0","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn husky:pre-commit"}},"lint-staged":{"*.{js,ts,tsx}":["yarn eslint --fix","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] [![CircleCI][circleci_shield]][circleci] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n### Features\n\n- [x] Typescript and Flow definitions\n- [x] Actively developed\n\n## Compatibility\n\nThis library will always target the most recent React Native package. If you are\nusing an older release of React Native, use the correct version of this library\nfrom the compatibility table below (if available):\n\n|   React Native    |                  Library                  |   Status   | End-of-Life |\n| :---------------: | :---------------------------------------: | :--------: | :---------: |\n|    `>= 0.60.0`    |    [![npm (scoped)][npm_shield]][npm]     | **Active** | Not planned |\n| `0.57.x - 0.59.x` | [![npm v2 (scoped)][npm_2_shield]][npm_2] | **Active** | 2020-01-03  |\n| `0.57.x - 0.59.5` | [![npm v1 (scoped)][npm_1_shield]][npm_1] |  **EOL**   | 2019-06-09  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [TinyColor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0.                                                                                                                                                                 |\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nnpm install #or yarn install\n$ react-native run-android #or react-native run-ios\n```\n\n## License\n\nCopyright (c) 2018-present Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/latest\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.2\n[npm_2_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/legacy\n[npm_1]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/1.4.1\n[npm_1_shield]: https://img.shields.io/badge/npm-v1.4.1-blue\n[circleci]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master\n[circleci_shield]: https://circleci.com/gh/matei-radu/react-native-in-app-browser/tree/master.svg?style=shield\n[tinycolor]: https://github.com/bgrins/TinyColor\n","readmeFilename":"README.md","gitHead":"da6224c68a8838ed0cde85fa6d168e146501011c","_id":"@matt-block/react-native-in-app-browser@3.1.3-rc.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-SyO7b2n8+XenwxCNbDz34K63m5SDriGVyC6109CP4AqNkQNyWoQtL03dEYqC8lzx9srYchKQMq8U7OKEtre9RQ==","shasum":"1091133f6ad33dc9b07d4948c7462b68a7f16b46","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.3-rc.0.tgz","fileCount":26,"unpackedSize":125385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdtZMJCRA9TVsSAnZWagAASR0P/iUXr3/TsUaAOCXqowJd\nHNKNbxnNHEbaix4SnA0H5RQQftfXWuj53BGAo8DOs4JSk0xAuZLIkz5Wcre5\nbP4mgiGUxdSePmMIsIdJ7klMipOtzXFo62YXgjbc0qP/OTyANwxxBdaObbus\naAMw72gspLbGx3xeyr2Z+XtG67rQQz6zKGva+VJ8vJppA93FpD8yhUMOH6Gk\nfqRFTaYgv1s7nehe3QOxe6wkk+mVZMGDshBJdgx2tEv7eDQY2aNd9hCBwl8a\nuqbmwi/jJ+UdclGCDpIOh1lwFXVTIxDraLnoKeK/2QyMrblzzeXTfx+wVu7f\nmMBS1Wuq+HElpNx3ewwi9m34uQ+wEANAol9Y2qLcS7mfWBb9NANm1w2xo57D\nmgfx3bH17IHvYEkuaZaAiRbR6WaoZTDLO8PQ1ScQp9rJy1bQ8mYJP/teGU1s\nbV02hZpB+tbZFWTUQndVot/FN/5nsFi2CbVOtx82idaZI8yPvxVnWsxKC6eH\nVBcsq4r9LkLYl+h9cEdm81iyMsqmE/YL3IEtolyD+hNkEVujlGRfaZQNuHR2\n4Y4DmkKiYM5lRzy5wsbqUJQQ7qJETTo8aKUkqlNturK3JcRotdKdt3DZOnu2\ntAwAuL4g8nvG7ucIqYjMNBn5kWfcew+fiRea6YLSgGUuW3DGSI+wOBFAUEfv\ngxG6\r\n=pwrk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICC1CNMoll7xGTZ+gONmNdmwGhisDtFQ8SwMhullRELtAiA+g35TJdXU0/Nu5xMtOsYckNEote+dK8Xa9eRT9j1eLg=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.3-rc.0_1572180744760_0.8208376240754118"},"_hasShrinkwrap":false},"3.1.3":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.3","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/matei-radu/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matei-radu/react-native-in-app-browser/issues"},"homepage":"https://github.com/matei-radu/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"run-s build:*","build:clean":"rimraf lib types","build:compile":"tsc","build:flow-types":"ts-node -P scripts/tsconfig.json scripts/move-flow-types.ts","prepack":"run-s build","prepare":"install-self-peers -- --ignore-scripts","release-manager":"ts-node -P release-manager/tsconfig.json release-manager","test":"jest --config jestconfig.json","validate:android":"cd android && ./gradlew spotlessCheck","validate:android:fix":"cd android && ./gradlew spotlessApply","validate:eslint":"eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"","validate:typescript":"tsc --noEmit"},"devDependencies":{"@react-native-community/eslint-config":"^0.0.5","@team-griffin/install-self-peers":"^1.1.1","@types/jest":"^24.0.23","@types/react":"^16.8.25","@types/react-native":"^0.60.25","@types/semver":"^6.2.0","@types/shelljs":"^0.8.6","@types/tinycolor2":"^1.4.1","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","commander":"^4.0.1","eslint":"^5.16.0","eslint-config-prettier":"^6.4.0","eslint-plugin-prettier":"^3.1.1","husky":"^3.1.0","jest":"^24.9.0","lint-staged":"^9.5.0","npm-run-all":"^4.1.3","prettier":"^1.19.1","rimraf":"^3.0.0","semver":"^6.3.0","shelljs":"^0.8.2","ts-jest":"^24.2.0","ts-node":"^8.5.4","typescript":"^3.7.3"},"peerDependencies":{"react":"^16.8.6","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["yarn eslint --fix","git add"]},"dependencies":{"tinycolor2":"^1.4.1"},"gitHead":"d507978d4db06bc6b40a0c25ed7bde81091f588e","_id":"@matt-block/react-native-in-app-browser@3.1.3","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-Po5hdRZG8MhNuA0mnCJcFGcpdI7WSE9Zq98pOmWUs5heNyBd0upnq2vuLFcr2MV4V8g4rk/cuaOi0vA4pp68MQ==","shasum":"964dd682448a65a51f98504216dce12f6de11082","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.3.tgz","fileCount":26,"unpackedSize":125887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9P+kCRA9TVsSAnZWagAA3NkP/iduYWEyPEyHGLhgC7DP\nsIQdAtvPUGlIl/blf6Qh4RfjwWYwUIAXjpRm4G8KdvQeDBesolAnAGrhSZOX\n2yaAEHM9/l8qX7rH3Q99EUpTeIbYzYoPNjYZ7pVqsY8zdLw0Nme4p1a8G4mN\nnCzWZ9e0o44m/D6cylmJ5aAdvh3Qsz2Ki85l79oeSMvpKVNWoJC+cfKcJxhz\nMwPxnAnYrV0QR5b/CS32mCbT26vOkAsgZ8sTm+gvJzqMXLRNQ3QG4LgM2Zxa\nC+uS20GtF/9/RZCQExbjasHoFb+12HuwjOTYQtEuCx+rv8xPR1Wyqa7HWuD4\nmTPQbZwXBmgmN+LK6vz2b5iFIrdHaSp+tzbF0fWSXNVpnRQS0H9tPRHAADvn\nkE54R1rC6G/+Vkp/AnGacbW4FQsyA6IOerNivkuOUqIrCyGW5D469/KTF1Aw\nRTVX4bqNOgh77CBBCdyNcYJs2iuuMdijzTJ9Ef57XBaSY1BRovOuNZ4QyBdK\nwvvXuaov//h82tauXj/pfVmYcXLKge6+84sGo2xvOTn5Wa04txoZPMrJNRZ/\niZ8DUw/5hg+FMM8Fc25qE3VVdMHzZuMeqOTaQ/XotNom1a8Ktwh9jTs7W0qP\nU6G+bF3c11IZJLIKBNWqoclutih23Xqip3MyWIkE+f9zmKTJnZLZROW8YSzo\nhWmX\r\n=HSeZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwDransrtpWbVB13GfjWv7/Aw5fuPUZvSErTxVj2aGGwIhAN7rNyG5oWTEVsMschWMVwgj53B3GmdTvqggctoAt0FJ"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.3_1576337316327_0.5805172253950444"},"_hasShrinkwrap":false},"3.1.4":{"name":"@matt-block/react-native-in-app-browser","version":"3.1.4","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/matei-radu/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matei-radu/react-native-in-app-browser/issues"},"homepage":"https://github.com/matei-radu/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"run-s build:*","build:clean":"rimraf lib types","build:compile":"tsc","build:flow-types":"ts-node -P scripts/tsconfig.json scripts/move-flow-types.ts","prepack":"run-s build","prepare":"install-self-peers -- --ignore-scripts","release-manager":"ts-node -P release-manager/tsconfig.json release-manager","test":"jest --config jestconfig.json","validate:android":"cd android && ./gradlew spotlessCheck","validate:android:fix":"cd android && ./gradlew spotlessApply","validate:eslint":"eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"","validate:typescript":"tsc --noEmit"},"devDependencies":{"@react-native-community/eslint-config":"^0.0.5","@team-griffin/install-self-peers":"^1.1.1","@types/jest":"^24.0.23","@types/react":"^16.8.25","@types/react-native":"^0.60.25","@types/semver":"^6.2.0","@types/shelljs":"^0.8.6","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","commander":"^4.0.1","eslint":"^5.16.0","eslint-config-prettier":"^6.4.0","eslint-plugin-prettier":"^3.1.1","husky":"^3.1.0","jest":"^24.9.0","lint-staged":"^9.5.0","npm-run-all":"^4.1.3","prettier":"^1.19.1","rimraf":"^3.0.0","semver":"^6.3.0","shelljs":"^0.8.2","ts-jest":"^24.2.0","ts-node":"^8.5.4","typescript":"^3.7.3"},"peerDependencies":{"react":"^16.8.6","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["yarn eslint --fix","git add"]},"dependencies":{"@ctrl/tinycolor":"^2.5.4"},"gitHead":"976de97a1f4ff0580e2e4b289d2cca83295b39fb","_id":"@matt-block/react-native-in-app-browser@3.1.4","_nodeVersion":"12.13.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-+Z/rG+5Aa7+LgsNoVKV2JF1GiXwy4R0mPRCaJyYtQteH2imEEtjIMG89GCVDKvJkJEedXRtu6NNjATt0HgpEVg==","shasum":"7953d3786614cbd1fd51740709b0db86e3c390e8","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.1.4.tgz","fileCount":26,"unpackedSize":126081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGwMMCRA9TVsSAnZWagAAr2cP+wXZvRh4dGwXZqCRNMuQ\nMDeiruDMUHikJ+Qz7XGuZOtT6y/J6lUAz9XwdN9esq4HmANxlbon9UJ7lPMo\nevVUjRutx8UPOfLjXPyyPm/uQIwE4B4R0iHi2fjr7ND5z02J5DgoGYMfXM3T\nINWIitBA3EpeEcdojt2sEjXY3eq4MC5PwVHR8l0gTKFv6BmCjRb3ZwbQlX/u\nZoiexVqTCJgGE+HUIadWvXgQWEb22i5vtk3HJxybhR9++SN6TnyUe2WVumAA\nRM9h370r7Op0xvPOL3gUWFGhmFA3IId2EpSYbN6i0ycIFSxbyTW/X4ikePyJ\n/AvfaHq/ABTq7/ngEk/GHalm6wetMtmsLV+kv1epHwnIQDI/vtoRJXU4ddis\nxw4zArkfOFAAAlQtYD1WgX9oStObGb5AAkQzhWP21WCWWLGxwQvGqsPNxqkz\nGikeyaxX/ULGdZJB3ggqTX6XEHiBVfGSswAbrpAzRn81nQnjYHcoXC9sHrh8\nu3rHTJWKhxS/v7NVDbRUUcXe4ZvcWsLK6yZjkPlnrYKP8qgjaNcUEmV+m7Wd\nxz8jxkYJ6yDqra5uhwNFBK0Uo5kQ2A3rRiDJWRiwEB2qiPy6VcbXWi9gGk+x\n44n/cKg6t3t84f1nYyUWsIINZyRmJSrRXggAnjdvXBbT9qJ2ocZvBd6g13Ra\n+QD2\r\n=1sRO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT2bas0lwbjLSLHKJ2kZoWL4I8dHYKGedP8vAnmZk4kAIgKZdQlq6JqUhXBDTbQS5csZ0MYMg+RHHOWDpByZEU5/Y="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.1.4_1578828556125_0.3774708470600583"},"_hasShrinkwrap":false},"3.2.0":{"name":"@matt-block/react-native-in-app-browser","version":"3.2.0","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/matei-radu/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matei-radu/react-native-in-app-browser/issues"},"homepage":"https://github.com/matei-radu/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"run-s build:*","build:clean":"rimraf lib types","build:compile":"tsc","build:flow-types":"ts-node -P scripts/tsconfig.json scripts/move-flow-types.ts","prepack":"run-s build","prepare":"install-self-peers -- --ignore-scripts","test":"jest --config jestconfig.json","validate:android":"cd android && ./gradlew spotlessCheck","validate:android:fix":"cd android && ./gradlew spotlessApply","validate:eslint":"eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"","validate:typescript":"tsc --noEmit"},"devDependencies":{"@react-native-community/eslint-config":"^0.0.5","@team-griffin/install-self-peers":"^1.1.1","@types/jest":"^24.0.23","@types/react":"^16.8.25","@types/react-native":"^0.60.25","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","eslint":"^5.16.0","eslint-config-prettier":"^6.4.0","eslint-plugin-prettier":"^3.1.1","husky":"^3.1.0","jest":"^24.9.0","lint-staged":"^9.5.0","npm-run-all":"^4.1.3","prettier":"^1.19.1","rimraf":"^3.0.0","ts-jest":"^24.2.0","ts-node":"^8.5.4","typescript":"^3.7.3"},"peerDependencies":{"react":"^16.8.6","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["yarn eslint --fix","git add"]},"dependencies":{"@ctrl/tinycolor":"^2.5.4"},"gitHead":"7bb463bc624374a910840a2f868779b3331ef8b1","_id":"@matt-block/react-native-in-app-browser@3.2.0","_nodeVersion":"12.13.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-5sgR4eEGnVOgwvMaRVjy03rq17I5PwZpg3cyppGGuzOS+dmjDNOy94CR44LX18RijWOjCJlBrCjD2KkPqbllVA==","shasum":"78790585d2e52c5ca093240afb2b6558ad22b698","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.2.0.tgz","fileCount":26,"unpackedSize":128970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWpQBCRA9TVsSAnZWagAAevoP/AojKOoDV3nUUZdqe3SU\nO9av/2MqnwNDLyR+ElR4bL4rpkY+CX5TBZojLa8VkAhh97nSl6BUg62f1zY9\nLOSunHqoJUX8DubQ4ulEG2RFNfkjHqm7PlZMYRiZe7HriXTOt0z7SGbSpecg\n3zAWeOmXNQSv7q8i8pmByh/gtGBl14DnCpfvhzRBL3o3CMvQyyW40dMDmZGk\n/mfkA1X/fySvB2wqud8nAtetcQ6GrKmzOw2ZHtkuGC3xbBIwHLjRU+YvkrK7\nVPR91pKHpLJivgwFvKPcEqTiTXxT5L59rJefI6oOmTsOTk47EI60ZzAmK/4A\nSxAdcVtclm/sPr0Hx7zme2Zlu5xe6dvdQO4P4m7tTEdrFxGO1inB964djSGf\nzsxtYDtwHEw64NfMUJ4VQysdqG6ZLqe8YInJRLKtIyP6obts+AK9+xmthZbP\n2e1BlgaM0Fp0EqebS2xTpf5RGbBaKcVSkUTNGFVnFVpO3Wht2kKvTh+j9lau\ns/0H7duBA5hrMBjJgNRdhfH6X17HMx0KZKFYegpd4Kd8LY4xNkxdV4cLNrRW\npxSR31ulvsQvWTRlCpDudftlhdar8Yko33bJ1bW8QWW1CKqbTUPmrJzyNLK3\nx12xIOW01mhIel7Y6AS/2mVdrXBvEvWGvay1btlh+2M+B/HzXZx8OIp4/dTr\n1qLr\r\n=Vq87\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjmuWAfBvE4djImZCfwKbMu2YYMsr7ThXFf7+QyYNCpQIhAMyyLjhg/YmBEX03QwwdEEZ5aGisSFCRhe755odTgCEQ"}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.2.0_1582994433079_0.9775981329632795"},"_hasShrinkwrap":false},"3.2.1":{"name":"@matt-block/react-native-in-app-browser","version":"3.2.1","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/matei-radu/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matei-radu/react-native-in-app-browser/issues"},"homepage":"https://github.com/matei-radu/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"run-s build:*","build:clean":"rimraf lib types","build:compile":"tsc","build:flow-types":"ts-node -P scripts/tsconfig.json scripts/move-flow-types.ts","prepack":"run-s build","prepare":"install-self-peers -- --ignore-scripts","test":"jest --config jestconfig.json","validate:android":"cd android && ./gradlew spotlessCheck","validate:android:fix":"cd android && ./gradlew spotlessApply","validate:eslint":"eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"","validate:typescript":"tsc --noEmit"},"dependencies":{"@ctrl/tinycolor":"^3.1.0"},"devDependencies":{"@react-native-community/eslint-config":"^1.1.0","@team-griffin/install-self-peers":"^1.1.1","@types/jest":"^25.2.1","@types/react":"^16.8.25","@types/react-native":"^0.60.25","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^25.5.4","lint-staged":"^10.2.2","npm-run-all":"^4.1.3","prettier":"^2.0.5","rimraf":"^3.0.0","ts-jest":"^25.5.0","ts-node":"^8.5.4","typescript":"^3.8.3"},"peerDependencies":{"react":"^16.8.6","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["yarn eslint --fix"]},"gitHead":"c355e9777b788dfdd21ddf3622c521c0acaf6750","_id":"@matt-block/react-native-in-app-browser@3.2.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-odO8I54Z5q1hcjUqSRuaz2aWlKBYu01hXPRV55AJ82A/3d45AuB31+GU7fEBAmaozSlQsNttZEmpwC3efLBsSQ==","shasum":"478e60d4754b8c55ade22d51f7cfedc9046c8bbb","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.2.1.tgz","fileCount":26,"unpackedSize":129313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewQRtCRA9TVsSAnZWagAAQicP/3O9rx1D3I4QcGipYLDR\nJDeY+854wIHr87NZMQ0G1Vljg/hLzp3pnRWDNl8o5bpmk/k/xgFkonV5uGpT\nGdglTkFkyWxs3wNFIglYpDlk3TW6kQUaoYrvVRG3LJWEmmSYYFmOD+ZeEp4R\n+9IkFhpyhrueOJ7auyBBRrk8rCHRgNrMEEIqpkuZL9fBaikPp1wU1dZLNd3L\nE8jcqtYFC+RCcT3C3EnyKNjvtDumRKUG6gcKvCDxgiCtHW/QS++W/WOCq40h\nvNi8+z4z+8mad8JbF/riiZ+oo9RQVKxrDVXuOb3pPOdgakOBOu36eNj7LXLX\nUIiG/P+rwc7t6EPFsiAJzEmJwCxO4yWoFdM05id6sJ9xuy7pdrYzFJZQGpcF\nUgruSGhgvK23wuej/JrQkgYpJOewSZ/pUq4aH9ecr56AZwQzQW+GYheHHvrT\nSKY1AIqd9qYwMDMAHWRBHNqEtvOfccYHDZLlFsIfiud1smp/enayW4YN9gQ1\nlDuwgEs/oFbZuaF0Hek/9ffOfKv/9fGHc+rY5xn9X1bMo47NmGR15kg4wO4q\n2VTozt0HJgse17sOwOzcN8t+pdYZi6nJS0cZohuT0NPbZmThxvq4VtONv1Jj\n8iAGt0ltX3RfONL0Z65ds7uPGCyqXCH5jbTIKctK8dBXBBiefq9LGUqc6KO+\nI3cW\r\n=DHu4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBu9+/MAy1IsHJRMnQxtTdq+tNqgeQomZDcBM0QHQO42AiBGDXr7ycvXrBg0PompQqIciH17jdDLhfwdu4sQRKPR+Q=="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.2.1_1589707884769_0.3249180635084499"},"_hasShrinkwrap":false},"3.2.2":{"name":"@matt-block/react-native-in-app-browser","version":"3.2.2","description":"React Native in-app browser","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"main":"lib/index.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/matei-radu/react-native-in-app-browser.git"},"bugs":{"url":"https://github.com/matei-radu/react-native-in-app-browser/issues"},"homepage":"https://github.com/matei-radu/react-native-in-app-browser#readme","author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"license":"MIT","private":false,"scripts":{"build":"run-s build:*","build:clean":"rimraf lib types","build:compile":"tsc","build:flow-types":"ts-node -P scripts/tsconfig.json scripts/move-flow-types.ts","prepack":"run-s build","prepare":"install-self-peers -- --ignore-scripts","test":"jest --config jestconfig.json","validate:android":"cd android && ./gradlew spotlessCheck","validate:android:fix":"cd android && ./gradlew spotlessApply","validate:eslint":"eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"","validate:typescript":"tsc --noEmit"},"dependencies":{"@ctrl/tinycolor":"^3.1.0"},"devDependencies":{"@react-native-community/eslint-config":"^1.1.0","@team-griffin/install-self-peers":"^1.1.1","@types/jest":"^25.2.1","@types/react":"^16.8.25","@types/react-native":"^0.60.25","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^25.5.4","lint-staged":"^10.2.2","npm-run-all":"^4.1.3","prettier":"^2.0.5","rimraf":"^3.0.0","ts-jest":"^25.5.0","ts-node":"^8.5.4","typescript":"^3.8.3"},"peerDependencies":{"react":"^16.8.6","react-native":">= 0.60.0"},"husky":{"hooks":{"pre-commit":"yarn lint-staged"}},"lint-staged":{"*.{js,ts,tsx}":["yarn eslint --fix"]},"_resolved":"","_integrity":"","_from":"file:matt-block-react-native-in-app-browser-3.2.2.tgz","_id":"@matt-block/react-native-in-app-browser@3.2.2","_nodeVersion":"12.18.2","_npmVersion":"6.14.7","dist":{"integrity":"sha512-PduTV1B7IDZebnDxYQEwksi5A7xOjlaV7cnxhy+O+KV02BxJBb7WqpLjT1noOi89kup+LgwjDg4Ad4fyMrhmWg==","shasum":"5192a3ff47cfd2eaaf8113bcdaafd5adae99d9f6","tarball":"https://registry.npmjs.org/@matt-block/react-native-in-app-browser/-/react-native-in-app-browser-3.2.2.tgz","fileCount":26,"unpackedSize":128960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdHLgCRA9TVsSAnZWagAA9hcP/RbGfKaeL1utRgpnJ9tQ\nH2LpJ911028rLGlKoe4WXCkCJcod4X0460saFtCxvRD4zdb+jmriEnb4IM3I\n8MyxiLPqSPKk6Yy9cWLr6UZx50TcEPMp4fUiHLHGnUjPqvDKHjcQ22fJ8+1d\nOOzepzz6uo4RRFWEWiZ3nKlBEKbLBMRe9C48HQ2/5DqBm227In22zZZ5aySs\nDtVUq1rq8BikxLJpBfsDvlKKzmDs7LSMjr7APqFWW1QGhtddgO25zMREn6b/\noYOgkbHn+0/7kSCfJu6U9c9d0nSFxXqlPesJtY6YEZjq20XW3lJEhs6Ah0+E\nuD8BpdEaoIj5UC9BKf7vhnf/BjvjgXAUUmRRHxaKxafv6LyCeaZommwMxo4M\nBmOwNoZGFio4qWErHAzIGYxstaDaEZdneMe+VZzbVYPwbE/rz98qsMqAuQJ0\nMS5wACL65/otXgqmKzby2Pg1zPEt9+pM1RIzAbAkdFZ+NMvx48lfOpZSXmT5\nqtEgFMc2Bj18FJuBFYvEvJsN/7Y3C5ie4cQw+gTD8rhGz0N24+lWkEVI2dl3\nEqcBR85OQ5SwXTPsd++5dUWGdMrkcID6pEIzAQM3xOgTmf5l05AJ+EBhKJCL\nNl/itPR+4Z90vEhy0K8d1tTU1SWcGtrd91pAfMOlBXcE3heFQaEv0vZpScon\n1myO\r\n=hKUS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVBYQ67gUrEI3dRPPpQeXt9rpheK4A1CXXOEfXNf0VrAIgPv22v53t5sRBvS24fwZ7eif7yyEQ+AwxES3BNE9R0gg="}]},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"_npmUser":{"name":"matt-block","email":"matei.radu.92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-in-app-browser_3.2.2_1601467104332_0.7161094046493404"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-03T18:13:56.230Z","1.0.0":"2018-10-03T18:13:56.597Z","modified":"2022-04-06T04:05:59.762Z","1.0.1-rc.0":"2018-10-06T22:49:26.970Z","1.0.1-rc.3":"2018-10-06T23:18:46.388Z","1.0.1":"2018-10-06T23:43:21.370Z","1.1.0-rc.1":"2018-10-13T21:43:24.964Z","1.1.0-rc.2":"2018-10-13T22:23:14.748Z","1.1.0":"2018-10-13T22:36:33.884Z","1.1.1-rc.0":"2018-10-30T14:22:54.175Z","1.1.1":"2018-10-30T14:58:36.583Z","1.1.2-rc.0":"2018-12-03T17:38:47.335Z","1.1.2":"2018-12-05T22:24:38.839Z","1.2.0-rc.0":"2019-01-08T17:19:19.896Z","1.2.0-rc.1":"2019-01-08T17:38:02.537Z","1.2.0":"2019-01-08T17:41:40.520Z","1.2.1":"2019-01-10T13:49:01.060Z","1.2.4-rc.0":"2019-01-29T18:22:52.180Z","1.2.4-rc.2":"2019-01-29T18:30:19.487Z","1.2.4-rc.3":"2019-01-29T18:31:29.529Z","1.2.4":"2019-01-29T18:37:38.794Z","1.2.7-rc.0":"2019-02-21T19:29:48.630Z","1.2.7":"2019-02-21T19:48:30.912Z","1.3.0-rc.0":"2019-02-27T09:55:05.009Z","1.3.0-rc.1":"2019-02-27T10:34:01.766Z","1.3.0-rc.2":"2019-02-27T10:49:44.193Z","1.3.0":"2019-02-27T10:57:04.124Z","1.4.0-rc.0":"2019-02-28T17:34:47.817Z","1.4.0-rc.2":"2019-02-28T17:48:47.872Z","1.4.0":"2019-03-01T09:56:30.895Z","1.4.1-rc.3":"2019-04-19T11:30:15.460Z","1.4.1":"2019-04-19T11:37:22.171Z","2.0.0-rc.1":"2019-05-26T10:42:51.910Z","2.0.0-rc.10":"2019-05-30T19:46:17.738Z","2.0.0-rc.11":"2019-05-31T15:03:30.284Z","2.0.0":"2019-05-31T15:09:50.652Z","3.0.0-rc.0":"2019-07-13T11:31:52.006Z","3.0.0":"2019-07-13T11:50:45.333Z","3.1.0-rc.0":"2019-08-03T12:39:32.358Z","2.1.0-rc.0":"2019-08-03T13:11:50.113Z","2.1.0":"2019-08-06T07:20:52.332Z","3.1.0-rc.2":"2019-08-06T07:47:05.694Z","3.1.0":"2019-08-06T08:51:07.439Z","2.1.1":"2019-08-08T07:28:22.423Z","2.1.2-rc.0":"2019-08-20T14:30:29.305Z","2.1.2":"2019-09-01T07:46:15.060Z","3.1.1-rc.1":"2019-09-01T08:14:56.311Z","3.1.1":"2019-09-01T08:28:45.649Z","2.1.3":"2019-10-19T09:00:17.539Z","3.1.2-rc.0":"2019-10-19T09:08:24.562Z","3.1.2":"2019-10-19T09:24:51.415Z","3.1.3-rc.0":"2019-10-27T12:52:24.895Z","3.1.3":"2019-12-14T15:28:36.486Z","3.1.4":"2020-01-12T11:29:16.453Z","3.2.0":"2020-02-29T16:40:33.364Z","3.2.1":"2020-05-17T09:31:24.901Z","3.2.2":"2020-09-30T11:58:24.477Z"},"maintainers":[{"name":"matt-block","email":"matei.radu.92@gmail.com"}],"description":"React Native in-app browser","homepage":"https://github.com/matei-radu/react-native-in-app-browser#readme","keywords":["in-app","browser","react-native","custom-tabs","tabs","chrome","chrome-custom-tabs","safari-view-controller","SFSafariViewController"],"repository":{"type":"git","url":"git+https://github.com/matei-radu/react-native-in-app-browser.git"},"author":{"name":"Matei Bogdan Radu","email":"opensource@mateiradu.dev"},"bugs":{"url":"https://github.com/matei-radu/react-native-in-app-browser/issues"},"license":"MIT","readme":"# React Native In-App Browser\n\n[![npm (scoped)][npm_shield]][npm] ![license: mit][license_shield]\n\nIn-App browser support for React Native, using [Chrome Custom Tabs][chromecustomtabs]\non Android\nand [Safari View Controller][sfsafariviewcontroller] on iOS.\n\n## Compatibility\n\n⚠️**Support has ended on October 1st 2020.**\n\nIt is recommended migrating to [react-native-inappbrowser-reborn] for continued support and more features.\n\n|   React Native    |                  Library                  |   Status   | End-of-Life |\n| :---------------: | :---------------------------------------: | :--------: | :---------: |\n| `0.60.0 - 0.62.x` |    [![npm (scoped)][npm_shield]][npm]     |  **EOL**   | 2020-10-01  |\n| `0.57.x - 0.59.x` | [![npm v2 (scoped)][npm_2_shield]][npm_2] |  **EOL**   | 2020-01-03  |\n| `0.57.x - 0.59.5` | [![npm v1 (scoped)][npm_1_shield]][npm_1] |  **EOL**   | 2019-06-09  |\n\n**Using Expo?** Check out [WebBrowser](https://docs.expo.io/versions/latest/sdk/webbrowser/).\n\n## Installation\n\nInstall the package via Yarn or npm:\n\n```sh\nyarn add @matt-block/react-native-in-app-browser\n\n# or\nnpm install --save @matt-block/react-native-in-app-browser\n```\n\n## Linking\n\n### React Native `0.60.0` and later\n\nPackages are [autolinked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md),\nhowever an extra step for iOS projects is needed:\n\n```sh\ncd ios && pod install && cd ..\n```\n\n### React Native `0.59.x` and below\n\nManually link the native module to your project:\n\n```sh\nreact-native link @matt-block/react-native-in-app-browser\n```\n\n### Note for iOS projects\n\nIn order for Xcode projects to build when using Swift-based libraries, your\nmain app project must contain Swift code and a bridging header. If your app\nproject does not contain any Swift code, add a single empty `.swift` file and an\nempty bridging header to your app.\n\nIf your Xcode project already makes use of Swift code you can safely ignore this\nnote.\n\n## Usage\n\n> ⚠️ Still using an older version ? Check out the [migration guides](https://github.com/matei-radu/react-native-in-app-browser/wiki/Migration-Guides).\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n\n// Minimal setup.\nInAppBrowser.open(\"https://www.wikipedia.org/\").catch(error => {\n  console.log(error);\n});\n\n\n// With platform-specific optional settings.\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    //...,\n  },\n  ios: {\n    //...,\n  },\n}).catch(error => {\n  console.log(error);\n});\n\n\n// Using async/await.\nasync onClickHandler() {\n  try {\n    await InAppBrowser.open(\"https://www.wikipedia.org/\");\n  } catch (error) {\n    console.log(error);\n  }\n}\n```\n\n### Startup optimizations (Android only)\n\nChrome Custom Tabs exposes methods to reduce the start time of a custom tab activity.\n\nFor information on how these work, check [Custom Tabs - Example and Usage Optimization](https://chromium.googlesource.com/external/github.com/GoogleChrome/custom-tabs-client/+/08e2c9155aff7296428aae854769c30b4060ae88/README.md#optimization)\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.warmup();\nInAppBrowser.mayLaunchUrl(\"https://wikipedia.org\");\n```\n\n### Programmatically close (iOS only)\n\nIt is possible to manually dismiss the iOS in-app instance by calling the method `close`.\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.close();\n```\n\nThis is not possible on Android since Chrome Custom Tabs do not expose such functionality and [Activity workarounds][customtabsmanualclose] would bring this package way out of scope.\n\n## Settings\n\nThe main method `open` accepts an object with settings objects for each\nplatform:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {},\n  ios: {}\n});\n```\n\nSettings can also be initialized separately with `configure` so that each `open` call won't need to specify them each time:\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {},\n  ios: {}\n});\n\n// Other part of your code base.\n// Previously initialized settings will apply.\nInAppBrowser.open(\"https://www.wikipedia.org/\");\n```\n\nNote that `open` will still accept settings as always but will effectively perform a merge between the initialized properties and the provided settings object (which will have priority over the initialized properties):\n\n```javascript\nimport { InAppBrowser } from \"@matt-block/react-native-in-app-browser\";\n\n// Somewhere in your app initialization logic.\nInAppBrowser.configure({\n  android: {\n    toolbarColor: \"red\",\n    showTitle: true\n  }\n});\n\n// Other part of your code base.\n// Merged settings for this call will result in:\n//\n// - toolbarColor: \"blue\",\n// - showTitle: true\nInAppBrowser.open(\"https://www.wikipedia.org/\", {\n  android: {\n    toolbarColor: \"blue\"\n  }\n});\n```\n\nThe properties for each platform settings are described below.\n\n### Android\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used.\n\n| Setting               | Type                                                | Default     | Description                                                                                                                |\n| --------------------- | --------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |\n| `toolbarColor`        | `string`                                            | `undefined` | The color to tint the background of the toolbar.<br/>Provided color can be in any [@ctrl/tinycolor][tinycolor] supported format. |\n| `showTitle`           | `boolean`                                           | `false`     | Flag to toggle if the page title should be shown in the custom tab.                                                        |\n| `closeButtonIcon`     | `string` _(as resolved by importing an image file)_ | `undefined` | Custom close button icon.<br/><br/>Provided icon must be a `.png`, `.jpg`, or `.gif` file.                                 |\n| `addDefaultShareMenu` | `boolean`                                           | `false`     | Flag to toggle the default share menu.                                                                                     |\n\n### iOS\n\nEach setting is optional. Furthermore, settings with invalid values will be\nignored and their default values will be used. Also, settings that are not\nsupported by the iOS version at runtime will be ignored as well.\n\n| Setting                     | Type      | Default     | Description                                                                                                                                                                                    |\n| --------------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `preferredBarTintColor`     | `string`  | `undefined` | The color to tint the background of the navigation bar and the toolbar.<br/>Provided color can be in any [@ctrl/tinycolor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0.      |\n| `preferredControlTintColor` | `string`  | `undefined` | The color to tint the control buttons on the navigation bar and the toolbar.<br/>Provided color can be in any [@ctrl/tinycolor][tinycolor] supported format.<br/><br/>**Available on**: iOS >= 10.0. |\n| `barCollapsingEnabled`      | `boolean` | `true`      | **Available on**: iOS >= 11.0. |\n| `dismissButtonStyle`      | `string` | `undefined`      | **Available on**: iOS >= 11.0.   |\n| `entersReaderIfAvailable`      | `boolean` | `false`      | A value that specifies whether Safari should enter Reader mode, if it is available.<br/><br/>**Available on**: iOS >= 11.0. |\n\n\n## Example\n\nAn example project showcasing the various configurations can be found in the\n`example` directory.\nSimply clone this repository, navigate into `example`, install the dependencies\nand run the app.\n\n```sh\ngit clone https://github.com/matei-radu/react-native-in-app-browser.git\ncd react-native-in-app-browser/example\nyarn install\nyarn start\nyarn android # or yarn ios\n```\n\n## License\n\nCopyright (c) 2018-2020 Matei Bogdan Radu.\n\nThis source code is licensed under the MIT license found in the\n[LICENSE][license] file in the root directory of this source tree.\n\n<!-- Sources -->\n\n[chromecustomtabs]: https://developer.chrome.com/multidevice/android/customtabs\n[customtabsmanualclose]: https://stackoverflow.com/a/41596629/1887860\n[sfsafariviewcontroller]: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller\n[license]: https://github.com/matei-radu/react-native-in-app-browser/blob/master/LICENSE\n[license_shield]: https://img.shields.io/badge/license-MIT-blue.svg\n[prettier_shield]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[npm]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser\n[npm_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/latest\n[npm_2]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/2.1.3\n[npm_2_shield]: https://img.shields.io/npm/v/@matt-block/react-native-in-app-browser/legacy\n[npm_1]: https://www.npmjs.com/package/@matt-block/react-native-in-app-browser/v/1.4.1\n[npm_1_shield]: https://img.shields.io/badge/npm-v1.4.1-blue\n[tinycolor]: https://github.com/TypeCtrl/tinycolor\n[react-native-inappbrowser-reborn]: https://github.com/proyecto26/react-native-inappbrowser\n","readmeFilename":"README.md"}