Home > react-native-material-kit > Textfield
Textfield class
The Textfield component, which has an optional and . - TODO styling read-only & disabled mode
Signature:
export default class Textfield extends Component<TextfieldProps, TextfieldState>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(props) | Constructs a new instance of the Textfield class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| defaultProps | static |
Partial<TextfieldProps> |
Defaults, see |
Methods
| Method | Modifiers | Description |
|---|---|---|
| blur() | Removes focus from an input or view. This is the opposite of focus(). |
|
| componentDidMount() | ||
| focus() | Requests focus for the given input or view. The exact behavior triggered will depend on the platform and type of view. | |
| isFocused() | Checks if the input is currently focused. | |
| render() | ||
| UNSAFE_componentWillMount() | ||
| UNSAFE_componentWillReceiveProps(nextProps) |