Version: 3.2.2

Form

With NativeBase v3 we have replaced Form with FormControl and sliced into FormControl.Label, FormControl.HelperText and FormControl.ErrorMessage.

Here an example to show the code comparison.

Code Comparison#

import React, { Component } from 'react';
import { Form, Item, Input } from 'native-base';
export default class FormExample extends Component {
render() {
return (
<Form>
<Item stackedLabel>
<Label>Username</Label>
<Input />
</Item>
<Item stackedLabel last>
<Label>Password</Label>
<Input />
</Item>
</Form>
);
}
}
// need to re-write