Open gunjankumar58 opened 6 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
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