Open gunjankumar58 opened 9 months ago
phoneInput?.current?.focus();
<PhoneInput ref={phoneInput} defaultValue={value} defaultCode="DM" layout="first" onChangeText={(text) => { setValue(text); }} onChangeFormattedText={(text) => { setFormattedValue(text); }} withDarkTheme withShadow autoFocus />
Error: TypeError: _phoneInput$curre.focus is not a function
+1 Still not working
+1 Didn't work for me either
phoneInput?.current?.focus();
<PhoneInput ref={phoneInput} defaultValue={value} defaultCode="DM" layout="first" onChangeText={(text) => { setValue(text); }} onChangeFormattedText={(text) => { setFormattedValue(text); }} withDarkTheme withShadow autoFocus />
Error: TypeError: _phoneInput$curre.focus is not a function