I have the following component:
export const FormikInput: React.SFC<Props> = (props: Props) => {
const handleChange = (value: string) => {
// do something
props.setFieldValue(props.key, value);
return (
<TextField
label={props.label}
onChangeText={handleChange}
value={props.values[props.key]}
/>
);
};
And I want to call the handleChange
method user react-test-renderer
Is that possible?