I'm submitting a ... (check one with "x")
Current behavior:
There is no focusInput() in the current version.
Expected behavior:
I want to be able to focus the Input programmatically.
Steps to reproduce:
Related code:
import React, { useRef, useImperativeHandle, forwardRef } from "react";
import {
Input as KittenInput,
InputProps as KittenInputProps
} from "react-native-ui-kitten";
interface Props {}
export type InputProps = Props & KittenInputProps;
const InputComponent: React.FC<InputProps> = (props, ref) => {
const inputRef = useRef();
useImperativeHandle(ref, () => ({
focus: () => {
console.log("focus", inputRef.current.refs);
inputRef.current.focusInput();
}
}));
return <KittenInput ref={inputRef} {...props} />;
};
export const Input = forwardRef(InputComponent);
OS, device, package version
"react-native-ui-kitten": "^4.0.3"
Thanks for report @FabianEhringer
Looks like this is a global problem, related not only to an Input but for all components 😱
Working on this. Thanks again
You are welcome! Thank's for the quick response time. We're switching from native-base to ui-kitten and we're very excited about your framework. We're on the verge of using it in production. :)
@FabianEhringer pleased to hear that 👍
We're interested in the reasons for your migration decision. We think this could help us become even better. Can you please contact us?
@artyorsh Yes of course, we would be happy to help. We will contact you with the reasons for our migration and additional feedback via email. :)
[email protected] - your feedback would be very helpful for us :)