Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cj committed Apr 7, 2016
1 parent e3e6107 commit ea44681
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,33 @@
# react-native-bottom-sheet
React Native Bottom Sheet module for android

## 如何安装

### 首先安装npm包

```bash
npm install react-native-bottom-sheet --save
```

### link
```bash
rnpm link
```

#### Note:
* rnpm requires node version 4.1 or higher
* Android SDK Build-tools 23.0.2 or higher

## 如何使用

### 引入包

```
import BottomSheet from 'react-native-bottom-sheet';
```

用法与``` ActionSheetIOS.showActionSheetWithOptions(options: Object, callback: Function) ```类似

```
BottomSheet.showBotttomSheetWithOptions(options: Object, callback: Function)
```
76 changes: 76 additions & 0 deletions npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
0 info it worked if it ends with ok
1 verbose cli [ '/Users/cj/.nvm/versions/node/v5.7.0/bin/node',
1 verbose cli '/Users/cj/.nvm/versions/node/v5.7.0/bin/npm',
1 verbose cli 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose publish [ '.' ]
5 silly cache add args [ '.', null ]
6 verbose cache add spec .
7 silly cache add parsed spec Result {
7 silly cache add raw: '.',
7 silly cache add scope: null,
7 silly cache add name: null,
7 silly cache add rawSpec: '.',
7 silly cache add spec: '/Users/cj/git/bottomsheet/react-native-bottom-sheet',
7 silly cache add type: 'directory' }
8 verbose addLocalDirectory /Users/cj/.npm/react-native-bottom-sheet/0.1.0/package.tgz not in flight; packing
9 verbose correctMkdir /Users/cj/.npm correctMkdir not in flight; initializing
10 info lifecycle [email protected]~prepublish: [email protected]
11 silly lifecycle [email protected]~prepublish: no script for prepublish, continuing
12 verbose tar pack [ '/Users/cj/.npm/react-native-bottom-sheet/0.1.0/package.tgz',
12 verbose tar pack '/Users/cj/git/bottomsheet/react-native-bottom-sheet' ]
13 verbose tarball /Users/cj/.npm/react-native-bottom-sheet/0.1.0/package.tgz
14 verbose folder /Users/cj/git/bottomsheet/react-native-bottom-sheet
15 verbose addLocalTarball adding from inside cache /Users/cj/.npm/react-native-bottom-sheet/0.1.0/package.tgz
16 verbose correctMkdir /Users/cj/.npm correctMkdir not in flight; initializing
17 silly cache afterAdd [email protected]
18 verbose afterAdd /Users/cj/.npm/react-native-bottom-sheet/0.1.0/package/package.json not in flight; writing
19 verbose correctMkdir /Users/cj/.npm correctMkdir not in flight; initializing
20 verbose afterAdd /Users/cj/.npm/react-native-bottom-sheet/0.1.0/package/package.json written
21 silly publish { name: 'react-native-bottom-sheet',
21 silly publish version: '0.1.0',
21 silly publish description: 'React Native Bottom sheet for android',
21 silly publish main: 'index.js',
21 silly publish scripts: { test: 'echo "Error: no test specified" && exit 1' },
21 silly publish keywords: [ 'bottomsheet', 'android' ],
21 silly publish author: { name: 'WhatAKitty' },
21 silly publish license: 'MIT',
21 silly publish repository:
21 silly publish { type: 'git',
21 silly publish url: 'git+ssh://[email protected]/WhatAKitty/react-native-bottom-sheet.git' },
21 silly publish readme: '# react-native-bottom-sheet\nReact Native Bottom Sheet module for android\n',
21 silly publish readmeFilename: 'README.md',
21 silly publish gitHead: 'e3e6107d53babaca7a02661c4a293b2277e3aa5b',
21 silly publish bugs: { url: 'https://github.com/WhatAKitty/react-native-bottom-sheet/issues' },
21 silly publish homepage: 'https://github.com/WhatAKitty/react-native-bottom-sheet#readme',
21 silly publish _id: '[email protected]',
21 silly publish _shasum: '98bf663b6fd5b7a7cb5d1876148b0eacb151ceed',
21 silly publish _from: '.' }
22 verbose getPublishConfig undefined
23 silly mapToRegistry name react-native-bottom-sheet
24 silly mapToRegistry using default registry
25 silly mapToRegistry registry https://registry.npmjs.org/
26 silly mapToRegistry uri https://registry.npmjs.org/react-native-bottom-sheet
27 verbose publish registryBase https://registry.npmjs.org/
28 silly publish uploading /Users/cj/.npm/react-native-bottom-sheet/0.1.0/package.tgz
29 verbose stack Error: auth required for publishing
29 verbose stack at CachingRegistryClient.publish (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js:30:14)
29 verbose stack at /Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/lib/publish.js:137:14
29 verbose stack at mapToRegistry (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/lib/utils/map-to-registry.js:55:3)
29 verbose stack at publish_ (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/lib/publish.js:106:3)
29 verbose stack at Array.<anonymous> (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
29 verbose stack at LOOP (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
29 verbose stack at LOOP (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/node_modules/slide/lib/chain.js:14:28)
29 verbose stack at chain (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
29 verbose stack at /Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/lib/publish.js:72:5
29 verbose stack at RES (/Users/cj/.nvm/versions/node/v5.7.0/lib/node_modules/npm/node_modules/inflight/inflight.js:23:14)
30 verbose cwd /Users/cj/git/bottomsheet/react-native-bottom-sheet
31 error Darwin 15.4.0
32 error argv "/Users/cj/.nvm/versions/node/v5.7.0/bin/node" "/Users/cj/.nvm/versions/node/v5.7.0/bin/npm" "publish"
33 error node v5.7.0
34 error npm v3.6.0
35 error code ENEEDAUTH
36 error need auth auth required for publishing
37 error need auth You need to authorize this machine using `npm adduser`
38 verbose exit [ 1, true ]

0 comments on commit ea44681

Please sign in to comment.