Update documentation and examples

This commit is contained in:
Nicolas Gallagher
2015-12-19 10:51:48 -08:00
parent 92554321df
commit 3d1ad50a58
10 changed files with 61 additions and 74 deletions
+4 -5
View File
@@ -130,8 +130,7 @@ If `true`, all text will automatically be selected on focus.
**style**: style
[View](View.md) style
+ ...[View#style](View.md)
+ `color`
+ `direction`
+ `fontFamily`
@@ -159,9 +158,9 @@ user edits to the value set `editable={false}`.
## Examples
```js
import React, { StyleSheet, TextInput } from 'react-native-web'
import React, { Component, StyleSheet, TextInput } from 'react-native-web'
export default class AppTextInput extends React.Component {
export default class TextInputExample extends Component {
constructor(props, context) {
super(props, context)
this.state = { isFocused: false }
@@ -192,7 +191,7 @@ export default class AppTextInput extends React.Component {
const styles = StyleSheet.create({
default: {
borderColor: 'gray',
borderWidth: '0 0 2px 0'
borderBottomWidth: 2
},
focused: {
borderColor: 'blue'