Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursorColor support for RenderProps #3611

Closed
mfds opened this issue Jan 20, 2023 · 1 comment · Fixed by #3896
Closed

cursorColor support for RenderProps #3611

mfds opened this issue Jan 20, 2023 · 1 comment · Fixed by #3896
Labels
feature request Status: Approved requested feature is approved and can be introduced to the library TextInput

Comments

@mfds
Copy link

mfds commented Jan 20, 2023

RN 0.70.x has a new cursorColor feature that it would be nice to have available on the RenderProps types of the TextInput component.

export type RenderProps = {
ref: (a?: NativeTextInput | null) => void;
onChangeText?: (a: string) => void;
placeholder?: string;
placeholderTextColor?: ColorValue;
editable?: boolean;
selectionColor?: string;
onFocus?: (args: any) => void;
onBlur?: (args: any) => void;
underlineColorAndroid?: string;
style: any;
multiline?: boolean;
numberOfLines?: number;
value?: string;
adjustsFontSizeToFit?: boolean;
testID?: string;
};

Current behaviour

A small subset of props are passed

Expected behaviour

New props to be passed to the render props

Workaround

When using render prop, you can pass the prop directly to the native text input.

@lukewalczak
Copy link
Member

Hey @mfds, I'll be more than happy to accept your contribution with cursorColor support.

@lukewalczak lukewalczak added the Status: Approved requested feature is approved and can be introduced to the library label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Status: Approved requested feature is approved and can be introduced to the library TextInput
Projects
None yet
2 participants