how to show error message on some text input in react native like described in following link for android. Show error tip on edittext in android
Simple, straightforward method One way to display error messages is to have a state that stores them. setErrorMessage("Example error message!")
Using Your Own React Boundaries import { Component } from "react"; export default class ErrorBoundary extends Component { constructor(props) { super(props); this. state = { hasError: false }; } static getDerivedStateFromError(error) { // Update state so the next render will show the fallback UI.
After many searching i have found a good text input component with error showing logic included. Here is the link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With