diff --git a/README.md b/README.md index cf8e611..2b3dd5e 100644 --- a/README.md +++ b/README.md @@ -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"; @@ -57,13 +55,11 @@ export default class AwesomeProject extends Component { ); } } - ``` - ### Props -### Props for Select +#### Props for Select | Prop Name | Data Type | Default Values | Description | |-----------------|-----------|-----------------|--------------------------------------------------| @@ -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: