Closed sritharIOS closed 3 years ago
Hi @sritharIOS, I believe you can use the autoFocus as you want because this component extends Textinput props. To set a default value when the page renders, just initialize the state value used on the input with the value you want.
I tried to set the state but custom label animation is not working. Please refer to the attached screen.
@Cnilton This issue has been resolved while setting the value during the state initialization. Thanks for the idea. const [text, setText] = useState(defaultValue);
I want to use the autoFocus property and set a default value when the page renders. How to achieve this one?