Skip to content

Commit

Permalink
Precise FormValidationMessage doc
Browse files Browse the repository at this point in the history
  • Loading branch information
martinezguillaume committed Jul 12, 2017
1 parent b3af429 commit c0c6e11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/API/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ import { FormLabel, FormInput } from 'react-native-elements'
```

#### FormValidationMessage example

##### The [FormValidationMessage](https://react-native-training.github.io/react-native-elements/API/forms/#formvalidationmessage-props) component is just a styled text. You have to implement for now the logic of errors. Basically, if you have an error, display the FormValidationMesage, if not, display nothing.

```js
<FormValidationMessage>
{'This field is required'}
</FormValidationMessage>
```
![FormValidationMessage example](http://i.imgur.com/IHVmL5d.png)

#### FormInput props
Expand Down

0 comments on commit c0c6e11

Please sign in to comment.