Skip to content

Commit

Permalink
Merge pull request #32 from lex111/patch-1
Browse files Browse the repository at this point in the history
Small improve README.md
  • Loading branch information
Azharuddin authored Aug 15, 2017
2 parents 22a57d3 + 8c385eb commit 6f2bc20
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ React Native Chooser is simple, customizable and easy to use dropdown in React N
npm i react-native-chooser --save
```

##Usage


```
## Usage

```js
import React, { Component } from 'react';
import {Select, Option} from "react-native-chooser";

Expand Down Expand Up @@ -57,13 +55,11 @@ export default class AwesomeProject extends Component {
);
}
}
```


### Props

### Props for Select
#### Props for Select

| Prop Name | Data Type | Default Values | Description |
|-----------------|-----------|-----------------|--------------------------------------------------|
Expand All @@ -82,26 +78,21 @@ export default class AwesomeProject extends Component {
| selected | string | null | Give it same value as you give to Option |
| selectedStyle | object | null | Apply styles to the selected Option |


### Functions for Select

#### Functions for Select

| Function Name | Description |
|-----------|-----------|
| setSelectedText(text) | Set default text in the select option, often used to reset text.|

### Props for Option

#### Props for Option

| Prop Name | Data Type | Default Values | Description |
|-----------|-----------|----------------|---------------------------------------|
| style | object | null | To style each option |
| styleText | object | null | To style the text shown in the option |



## Demo
##### IOS and Android:
### IOS and Android:
<p align="center">
<img src ="https://raw.githubusercontent.com/gs-akhan/react-native-select/master/dropdown-both.gif" />
</p>
Expand Down

0 comments on commit 6f2bc20

Please sign in to comment.