Skip to content

Commit

Permalink
add npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-n committed Mar 1, 2016
1 parent f7c1f21 commit 831fbb4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test
.idea
SampleApp
.gitignore
docs
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Here is an overview of the component usage.

```jsx

import SpringSelector from 'react-native-spring-selector'
import ModalPicker from 'react-native-modal-picker'

[..]

Expand Down Expand Up @@ -45,7 +45,7 @@ class SampleApp extends Component {

return (
<View style={{padding:40, flex:1}}>
<SpringSelector
<ModalPicker
data={data}
initValue="Select something yummy!"
onChange={(option)=>{ alert(`${option.label} (${option.key}) nom nom nom`) }}
Expand Down
4 changes: 2 additions & 2 deletions SampleApp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, {
View
} from 'react-native';

import SpringSelector from 'react-native-spring-selector'
import ModalPicker from 'react-native-modal-picker'

class SampleApp extends Component {
render() {
Expand All @@ -31,7 +31,7 @@ class SampleApp extends Component {

return (
<View style={{padding:40, flex:1}}>
<SpringSelector
<ModalPicker
data={data}
initValue="Select something yummy!"
onChange={(option)=>{ alert(`${option.label} (${option.key}) nom nom nom`) }}
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const defaultProps = {
cancelText: 'cancel'
}

export default class SpringSelector extends BaseComponent {
export default class ModalPicker extends BaseComponent {

constructor() {

Expand Down Expand Up @@ -191,5 +191,5 @@ export default class SpringSelector extends BaseComponent {
}
}

SpringSelector.propTypes = propTypes;
SpringSelector.defaultProps = defaultProps;
ModalPicker.propTypes = propTypes;
ModalPicker.defaultProps = defaultProps;

0 comments on commit 831fbb4

Please sign in to comment.