From afa1e4e8f96ce0fce99a42c84f3003cfa712e51a Mon Sep 17 00:00:00 2001 From: Oana Maria Teodorescu Date: Sun, 24 Jan 2021 15:18:47 +0200 Subject: [PATCH] Prepare for first npm publish --- README.md | 8 ++++---- package-lock.json | 2 +- package.json | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4dec71c..14cb078 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# react-native-open-document +# @r4dic4l/react-native-open-doc This is a fork of [react-native-open-doc](https://github.com/capriza/react-native-open-doc). @@ -11,11 +11,11 @@ Share files on Android (for iOS use the react-native Share.share({ url: selected ## Getting started -`$ npm install react-native-open-document --save` +`$ npm install @r4dic4l/react-native-open-doc --save` ### Mostly automatic installation -`$ react-native link react-native-open-document` +`$ react-native link @r4dic4l/react-native-open-doc` Android ONLY: [Define a FileProvider](https://developer.android.com/reference/android/support/v4/content/FileProvider) @@ -75,7 +75,7 @@ Android ONLY: ## Usage ```javascript -import RNCOpenDoc from 'react-native-open-doc'; +import RNCOpenDoc from '@r4dic4l/react-native-open-doc'; // For opening a document by path (android and iOS) // Works with file:// prefix OR direct file path diff --git a/package-lock.json b/package-lock.json index 0de9d67..3868810 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "react-native-open-doc", + "name": "@r4dic4l/react-native-open-doc", "version": "2.1.5", "lockfileVersion": 1 } diff --git a/package.json b/package.json index 0788a30..e30353d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-open-doc", + "name": "@r4dic4l/react-native-open-doc", "version": "2.1.5", "description": "React Native module for opening documents", "main": "index.js", @@ -23,5 +23,8 @@ "license": "MIT", "peerDependencies": { "react-native": ">=0.50.0" + }, + "bugs": { + "url": "https://github.com/r4dic4l/react-native-open-doc/issues" } }