{"_id":"@carentogruppe/react-native-file-share-intent","_rev":"2-ac3ca3e89d56b115a2ca7934581c26cc","name":"@carentogruppe/react-native-file-share-intent","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.1":{"name":"@carentogruppe/react-native-file-share-intent","version":"1.1.1","description":"Adds the app to share menu, so it can be launched from share menu and receive data from other apps","main":"","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ajith-ab/react-native-file-share-intent.git"},"keywords":["ios","android","react-native","share","extension"],"author":{"name":"Ajith A B"},"license":"ISC","bugs":{"url":"https://github.com/ajith-ab/react-native-file-share-intent/issues"},"homepage":"https://github.com/ajith-ab/react-native-file-share-intent#readme","gitHead":"ad61069bf462ca8a7bc0b9d78b49037a946c8073","_id":"@carentogruppe/react-native-file-share-intent@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mstegmann-carento","email":"marcel.stegmann@carento.de"},"dist":{"integrity":"sha512-vajCxLIY24KgN1U/4F5zwsoj5atVxo9lMwPlQYM59x5NP9kvD4oBgv25uYuhhj5SSWNXNw4nKwQ3kpjx3FaAtg==","shasum":"c5e8206c90b482bab4baf6dd379f83c4a1d91fbe","tarball":"https://registry.npmjs.org/@carentogruppe/react-native-file-share-intent/-/react-native-file-share-intent-1.1.1.tgz","fileCount":148,"unpackedSize":4498493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpyi9CRA9TVsSAnZWagAAdnUP/2w1RiKPtdPCp8L19hVa\naAIRvB2n686MvxoyZZlYzzWgAQRRyEFV/I8JRMrujH71mQhpm7bldA2imLhQ\n6PDb8R1oOWgHbDeCcHf4iFyz/hQVMxxJ8nJ7uEZBTLs2AHTSE9Ztxd7MD1Le\nPWrOsVtS+4kVG6hhqLe5ndihNKF5H2I0aoo25D6e/0f7+Zf52WE1EOX/WqO5\nk6SCg1HB4Deyl9Z7ExToNs1S7Gv7WTN4RJ2gvDsBfozt7KD5+y7oeylZYp5L\n2z2cNZdv1JnUJkisk3VN/yTYV0PX8KCtk7vzTooKanlmwG7Wi7id4N9TS8ZE\nOiVzuTCbQgDj0JVuM6iSSgNB7lplXfD/sU4eVASdgmYiHyf4jGYIzU/Q7Hvb\n3bHJz80SliYfUkwKdya969UpuQ6H5M9g2C/gys5Cld4e7MvJcYJBTAYktU7j\n9cPPlX3G648YSKZR9dCJ9pHfbIjy7jewQ+/77hamV5HlWWN8t2EFAjvwHxod\n2ZIhdX91blm7I7PCzUvVXanckDwXXP7u3stx78ZDZrTS+AiBmcc+hzqBQN0t\n379Si5vzztlvCFuoa4sZ/3oQouxxHN7jCnE2o1f1supe/DmRJN/+ujpxO3oG\nx7X1yvMIyhHPUOskp9VJtdq6lL7EQd8eHlZz++KMwYI2frg2QAsMMMzFWyaP\nIoGN\r\n=BWim\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRnORQ9Q5Xp4qzreb30vb1Et7i5mV9VlbwHxoWQ9T+WAIhAK271ou1xpYa3/3Kdkmhe2vUG6V0jLg9iOim6I9ohBsU"}]},"maintainers":[{"name":"mstegmann-carento","email":"marcel.stegmann@carento.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-file-share-intent_1.1.1_1571236028744_0.972019114131363"},"_hasShrinkwrap":false},"1.1.2":{"name":"@carentogruppe/react-native-file-share-intent","version":"1.1.2","description":"Adds the app to share menu, so it can be launched from share menu and receive data from other apps","main":"","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ajith-ab/react-native-file-share-intent.git"},"keywords":["ios","android","react-native","share","extension"],"author":{"name":"Ajith A B"},"license":"ISC","bugs":{"url":"https://github.com/ajith-ab/react-native-file-share-intent/issues"},"homepage":"https://github.com/ajith-ab/react-native-file-share-intent#readme","gitHead":"ad61069bf462ca8a7bc0b9d78b49037a946c8073","_id":"@carentogruppe/react-native-file-share-intent@1.1.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mstegmann-carento","email":"marcel.stegmann@carento.de"},"dist":{"integrity":"sha512-NP+Ew1fdIE4t8p7hIbb29+oybuP4+rxd+7C5aOIvwyOTlUquwMGHQHD/wbZVGX52ys5VAFqJGl6KW3ypaBnRUw==","shasum":"b0f6f3236d49627f661dbb0e2502f388fe18ce9b","tarball":"https://registry.npmjs.org/@carentogruppe/react-native-file-share-intent/-/react-native-file-share-intent-1.1.2.tgz","fileCount":147,"unpackedSize":4495981,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsAK1CRA9TVsSAnZWagAAw8YP/0YrQX75uxIW1UMy9CQu\nk3zL9f/XyMSxRVgYWtfAwW2Z9vCVLndtDHS146GjR43Ci2RQTd8A4CbeH2eU\nNyPW9XqzPIQhDqo89isXdbOW8B5wctWE9e6lvkajfSBelilJHWxyvm/oIxXq\nonuiPwvCx3imGt20cqiGbHSjRvt6QQPJ5Hk+ahWaX9zCdcebW3mq7D331MA7\nglMXCYozNagIxu+IUssUnFFnSdSHb9hXFYvSrHJVgHQw3E5cl8QLzRG8SXyF\nmFSBjisKrElYwe9iJa/nEy6UWHwb4p3mjEB7r899nOW4tgylANlXcqFDcExn\nPImL4lL2zdUH1c12NZi/4ketgng5HbO7eQ6q36T8y+HBKaM6YjwUlzcekzpt\na3BiZuWS3jh393g9rMopl0usFkcvmO0pLTpUpQTctNTjp9hABLCEkUQEGUJd\nnK7MPk8PoB2VXNbElsULu8DNw7NJRf8GypPV/PPvU9UB2EwyndMaZFs6GiAi\nxYFPWR6lpm2z8ln7ju/OcWbYKQ9IYIh1SpvOYVx2dTnWLhYLCdiaTxuKOBy+\n9Syr7NGECnX6c87vJrRH9peO5NjH04wgYCfy5/R+CrSx07vd/LQeFRqiRTOy\n3zcJntug95dWTH8OJYjSeBGWn+lY5niLJFvxm33gpGBNIJKZi2S/FeuIuL+N\nHWj0\r\n=b01D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBhOsgRXVkjg2aPCA7dkQA6KVED+9VHLtgDxruusN8Z0AiAjWHzgbiP/TgcYS1nCxkw3gjQ1R9at9QCwU10YiOJPAQ=="}]},"maintainers":[{"name":"mstegmann-carento","email":"marcel.stegmann@carento.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-file-share-intent_1.1.2_1571816117250_0.42069988268577485"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-16T14:27:08.665Z","1.1.1":"2019-10-16T14:27:09.025Z","modified":"2022-04-04T21:54:39.390Z","1.1.2":"2019-10-23T07:35:17.511Z"},"maintainers":[{"name":"mstegmann-carento","email":"marcel.stegmann@carento.de"}],"description":"Adds the app to share menu, so it can be launched from share menu and receive data from other apps","homepage":"https://github.com/ajith-ab/react-native-file-share-intent#readme","keywords":["ios","android","react-native","share","extension"],"repository":{"type":"git","url":"git+https://github.com/ajith-ab/react-native-file-share-intent.git"},"author":{"name":"Ajith A B"},"bugs":{"url":"https://github.com/ajith-ab/react-native-file-share-intent/issues"},"license":"ISC","readme":"# react-native-file-share-intent\n\nAdds the application to the share intent of the device, so it can be launched from other apps and receive data from them \n\n\n\n\n## Installation\n\n* Install the module\n\n```bash\nnpm i --save react-native-file-share-intent\n```\n\n### Automatic Installation (React Native 0.36 - 0.59.9)\n\nAt the command line, in the project directory: only For `Android` and in `ios` use Manual installation\n\n```bash\nreact-native link\n```\n\n### Manual Installation\n- <a href=\"https://github.com/ajith-ab/react-native-file-share-intent/tree/master/ios\">IOS</a> \n- <a href=\"https://github.com/ajith-ab/react-native-file-share-intent/tree/master/android\">Android</a>   \n\n\n### Donate\n\n<p><a href=\"https://www.paypal.me/ajithab\" rel=\"nofollow\"><img height=\"75\" src=\"https://raw.githubusercontent.com/stefan-niedermann/paypal-donate-button/master/paypal-donate-button.png\" style=\"max-width:100%;\"></a></p>\n\n\n## Example\n\n### For Android\n\nApp.js\n\n```javascript\nimport React, { Component } from 'react';\nimport  {Text,View} from 'react-native';\n\nimport RNFileShareIntent from 'react-native-file-share-intent';\n \nexport default class App extends Component {\n  constructor(props) {\n    super(props); \n    this.state = {\n      fileUrl: null,\n    };\n  }\n \n  componentDidMount() {\n   if(RNFileShareIntent){\n     RNFileShareIntent.getFilepath((url) => {\n       this.setState({ fileUrl: url }); \n       })  \n   }\n  \n  }\n  render() {\n    var uri = this.state.fileUrl;\n    return (\n      <View style={{flex:1,justifyContent:'center'}}>\n        <Text>Shared Url: {uri}</Text>\n      </View>\n    );\n  }\n}\n \n```\n\n### For IOS Share Extension View\n\nShare.js in the Root Folder\n\n```javascript\nimport React, { Component } from 'react';\nimport { View, Text, AppRegistry, StyleSheet, Button } from 'react-native';\nimport RNFileShareIntent from 'react-native-file-share-intent';\nexport default class Share extends Component {\n    constructor(props) {\n        super(props);\n        this.state = {\n            sharedText: null\n        };\n    }\n    componentDidMount() {\n        var that = this;\n        RNFileShareIntent.getFilePath((text) => {\n            that.setState({ sharedText: text });\n\n        })\n    }\n\n    render() {\n        var url = this.state.sharedText;\n        return (\n            <View style={{ flex: 1, justifyContent: 'center' }}>\n                <Text style={styles.text}>Shared file Path: {url}</Text>\n                <Button\n                    title=\"open With Other App\"\n                    color=\"#841584\"\n                    onPress={() => RNFileShareIntent.openURL(url)}\n                />\n                <Button\n                    title=\"Close Extension\"\n                    color=\"#841584\"\n                    onPress={() => RNFileShareIntent.close()}\n                />\n            </View>\n        )\n    }\n}\n\nconst styles = StyleSheet.create({\n    text: {\n        color: 'black',\n        backgroundColor: 'white',\n        fontSize: 30,\n        margin: 80\n    }\n});\n\nAppRegistry.registerComponent('Share', () => Share);\n\n```\n\n\n\nOr check the \"example\" directory for an example application.\n\n## Preview\n\n### IOS\n<p float=\"left\">\n\n<img src =\"https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/master/assets/ios.png\" />\n<img src =\"https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/master/assets/ios_intent.png\" />\n</p>\n\n### Android\n\n<p float=\"left\">\n\n<img src =\"https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/master/assets/android .png\" />\n<img src =\"https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/master/assets/android_intent.png\" />\n</p>\n\n## Credits\n\nSponsored and developed by <a href=\"http://ajithab.com\">Ajith A B</a>\n","readmeFilename":"README.md"}