Explorar o código

move to @uppy/react-native package

Artur Paikin %!s(int64=6) %!d(string=hai) anos
pai
achega
04a3df9f15

+ 1 - 1
examples/react-native-expo/App.js

@@ -9,7 +9,7 @@ import {
 } from 'react-native'
 import Uppy from '@uppy/core'
 import Tus from '@uppy/tus'
-import UppyFilePicker from './react-native/file-picker'
+import UppyFilePicker from '@uppy/react-native'
 import FileList from './FileList'
 import PauseResumeButton from './PauseResumeButton'
 import ProgressBar from './ProgressBar'

+ 21 - 0
packages/@uppy/react-native/LICENSE

@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Transloadit
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 24 - 0
packages/@uppy/react-native/README.md

@@ -0,0 +1,24 @@
+# @uppy/react-native
+
+⚠️ Alpha version, use at your own risk!
+
+<img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right">
+
+<a href="https://www.npmjs.com/package/@uppy/react-native"><img src="https://img.shields.io/npm/v/@uppy/react-native.svg?style=flat-square"></a>
+<a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a>
+
+Alpha version of an Uppy React Native plugin. Tested with Expo, supports picking local files and videos, and remore Urls with `@uppy/companion`.
+
+## Installation
+
+```bash
+$ npm install @uppy/react-native --save
+```
+
+## Documentation
+
+Not available in alpha-version, use at your own risk.
+
+## License
+
+[The MIT License](./LICENSE).

+ 0 - 0
examples/react-native-expo/react-native/file-picker/index.js → packages/@uppy/react-native/file-picker/index.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/instagram.js → packages/@uppy/react-native/file-picker/instagram.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/provider-grid.js → packages/@uppy/react-native/file-picker/provider-grid.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/provider.js → packages/@uppy/react-native/file-picker/provider.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/selectDocument.js → packages/@uppy/react-native/file-picker/selectDocument.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/selectImage.js → packages/@uppy/react-native/file-picker/selectImage.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/takePicture.js → packages/@uppy/react-native/file-picker/takePicture.js


+ 0 - 0
examples/react-native-expo/react-native/file-picker/url.js → packages/@uppy/react-native/file-picker/url.js


+ 3 - 0
packages/@uppy/react-native/index.js

@@ -0,0 +1,3 @@
+import picker from 'file-picker/index.js'
+
+export default picker

+ 26 - 0
packages/@uppy/react-native/package.json

@@ -0,0 +1,26 @@
+{
+  "name": "@uppy/react-native",
+  "description": "React Native Uppy UI components",
+  "version": "0.0.1",
+  "main": "index.js",
+  "license": "MIT",
+  "keywords": [
+    "file uploader",
+    "uppy",
+    "uppy-plugin",
+    "react",
+    "react-components",
+    "react-native"
+  ],
+  "homepage": "https://uppy.io",
+  "bugs": {
+    "url": "https://github.com/transloadit/uppy/issues"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/transloadit/uppy.git"
+  },
+  "dependencies": {},
+  "devDependencies": {},
+  "peerDependencies": {}
+}