Skip to content

Commit

Permalink
fix props table
Browse files Browse the repository at this point in the history
For some props, column default and type was mixed up.
At the end, the default column was missing; at least added it empty not to break the table anymore...
  • Loading branch information
harry-g committed Jul 4, 2017
1 parent 9c3d93f commit dd9342c
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions docs/API/lists.md
Expand Up @@ -173,48 +173,48 @@ styles = StyleSheet.create({
| onLongPress | none | function | onLongPress method for link (optional) |
| roundAvatar | false | boolean | make left avatar round |
| title | none | string, number or object | main title for list item, can be text or custom view (required) |
| titleNumberOfLines | number | 1 | Number of lines for Title |
| titleNumberOfLines | 1 | number | Number of lines for Title |
| titleStyle | none | object (style) | additional title styling (optional) |
| titleContainerStyle | none | style (object) | provide styling for title container |
| subtitle | none | string, number or object | subtitle text or custom view (optional) |
| subtitleNumberOfLines | number | 1 | Number of lines for Subtitle |
| subtitleNumberOfLines | 1 | number | Number of lines for Subtitle |
| subtitleContainerStyle | none | style (object) | provide styling for subtitle container |
| subtitleStyle | none | object (style) | additional subtitle styling (optional ) |
| rightTitle | none | string | provide a rightTitle to have a title show up on the right side of the button |
| rightTitleNumberOfLines | number | 1 | Number of lines for Right Title |
| rightTitleNumberOfLines | 1 | number | Number of lines for Right Title |
| rightTitleContainerStyle | flex: 1, alignItems: 'flex-end', justifyContent: 'center' | object (style) | style the outer container of the rightTitle text |
| rightTitleStyle | marginRight: 5, color: '#bdc6cf' | object (style) | style the text of the rightTitle text |
| label | none | react native component | add a label with your own styling by providing a label={<SomeComponent />} prop to ListItem |
| leftIcon | none | object {name, color, style, type} (type defaults to material icons) <br/><br/> **OR** <br/><br/> React Native element | icon configuration for left icon (optional) |
| leftIconOnPress | function | none | Attaches an onPress on left Icon |
| leftIconOnLongPress | function | none | Attaches an onLongPress on left Icon |
| leftIconOnPress | none | function | Attaches an onPress on left Icon |
| leftIconOnLongPress | none | function | Attaches an onLongPress on left Icon |
| leftIconUnderlayColor | string | white | Underlay color for left Icon |
| rightIcon | {name: 'chevron-right'} | object {name, color, style, type} (type defaults to material icons) <br/><br/> **OR** <br/><br/> React Native element | icon configuration for right icon (optional). Shows up unless hideChevron is set |
| onPressRightIcon | function | none | Attaches an onPress on right Icon |
| onPressRightIcon | none | function | Attaches an onPress on right Icon |
| switchButton | false | boolean | add a switch to the right side of your component |
| onSwitch | function | none | add a callback function when the switch is toggled |
| switchDisabled | boolean | If true the user won't be able to toggle the switch. Default value is false. |
| switchOnTintColor | string | Background color when the switch is turned on. |
| switchThumbTintColor | string | Color of the foreground switch grip. |
| switchTintColor | string | Border color on iOS and background color on Android when the switch is turned off. |
| switched | boolean | The value of the switch. If true the switch will be turned on. Default value is false. |
| textInput | PropTypes.bool | Whether to have the right title area be an input text component. |
| textInputAutoCapitalize | boolean | Can tell TextInput to automatically capitalize certain characters. |
| textInputAutoCorrect | boolean | Can tell TextInput to automatically capitalize certain characters. |
| textInputAutoFocus | boolean | If true, focuses the input on componentDidMount. The default value is false. |
| textInputEditable | boolean | If false, text is not editable. The default value is true. |
| textInputKeyboardType | string | Can be one of the following: 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search' |
| textInputMaxLength | number | Limits the maximum number of characters that can be entered. |
| textInputMultiline | boolean | If true, the text input can be multiple lines. The default value is false. |
| textInputOnChangeText | function | Callback that is called when the text input's text changes. Changed text is passed as an argument to the callback handler. |
| textInputOnFocus | function | Callback that is called when the text input is focused. |
| textInputValue | string | Manually set value of the input
| textInputSecure | boolean | If true, obscures the text entered so that sensitive text like passwords stay secure. |
| textInputStyle | object (style) | Style for the input text |
| textInputContainerStyle | object (style) | Style for the container surrounding the input text |
| textInputOnBlur | function | Callback that is called when the text input is blurred. |
| textInputSelectTextOnFocus | boolean | If true, all text will automatically be selected on focus. |
| textInputReturnKeyType | string | Determines how the return key should look. For more info see [the React Native docs](https://facebook.github.io/react-native/docs/textinput.html#returnkeytype) |
| onSwitch | none | function | add a callback function when the switch is toggled |
| switchDisabled | | boolean | If true the user won't be able to toggle the switch. Default value is false. |
| switchOnTintColor | | string | Background color when the switch is turned on. |
| switchThumbTintColor | | string | Color of the foreground switch grip. |
| switchTintColor | | string | Border color on iOS and background color on Android when the switch is turned off. |
| switched | | boolean | The value of the switch. If true the switch will be turned on. Default value is false. |
| textInput | | PropTypes.bool | Whether to have the right title area be an input text component. |
| textInputAutoCapitalize | | boolean | Can tell TextInput to automatically capitalize certain characters. |
| textInputAutoCorrect | | boolean | Can tell TextInput to automatically capitalize certain characters. |
| textInputAutoFocus | | boolean | If true, focuses the input on componentDidMount. The default value is false. |
| textInputEditable | | boolean | If false, text is not editable. The default value is true. |
| textInputKeyboardType | | string | Can be one of the following: 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search' |
| textInputMaxLength | | number | Limits the maximum number of characters that can be entered. |
| textInputMultiline | | boolean | If true, the text input can be multiple lines. The default value is false. |
| textInputOnChangeText | | function | Callback that is called when the text input's text changes. Changed text is passed as an argument to the callback handler. |
| textInputOnFocus | | function | Callback that is called when the text input is focused. |
| textInputValue | | string | Manually set value of the input
| textInputSecure | | boolean | If true, obscures the text entered so that sensitive text like passwords stay secure. |
| textInputStyle | | object (style) | Style for the input text |
| textInputContainerStyle | | object (style) | Style for the container surrounding the input text |
| textInputOnBlur | | function | Callback that is called when the text input is blurred. |
| textInputSelectTextOnFocus | | boolean | If true, all text will automatically be selected on focus. |
| textInputReturnKeyType | | string | Determines how the return key should look. For more info see [the React Native docs](https://facebook.github.io/react-native/docs/textinput.html#returnkeytype) |

#### Badges
![Badges](http://i.imgur.com/qvJgGF2.png)
Expand Down

0 comments on commit dd9342c

Please sign in to comment.