-
Notifications
You must be signed in to change notification settings - Fork 83
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
Missing Required Props for TextInput Error #260
Comments
Without the error, I can't say much. Maybe you have multiple versions of |
We're also seeing this error on
Package.json
Example Code
|
We have the same problem |
hmm okay and i assume it doesn’t happens with the RN input? does this only happen with dripsy’s input, or other elements too? |
Correct if you switch the import from dripsy to react-native it’s all good. I’m hoping to spend some time looking at the TS definitions. I think it’s just not marking these props as optional |
All the other components work perfectly, thank you for a great library! |
Does downgrading to Dripsy 3.6.0 fix this? I think it may be related to a recent PR. |
I reproduced this with const ScrollView: React.ForwardRefExoticComponent<Pick<Omit<{
testID?: string | undefined;
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
horizontal?: boolean | null | undefined;
hitSlop?: import("react-native").Insets | undefined;
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
removeClippedSubviews?: boolean | undefined;
nativeID?: string | undefined;
collapsable?: boolean | undefined;
needsOffscreenAlphaCompositing?: boolean | undefined;
... 95 more ...;
persistentScrollbar?: boolean | undefined;
}, keyof StyledProps<...>> & StyledProps<...> & {
...;
} & React.RefAttributes<...>, "key" | ... 1 more ... | keyof ScrollViewProps> & {
...;
} & React.RefAttributes<...>>
import ScrollView
Type '{ children: Element[]; showsVerticalScrollIndicator: false; }' is missing the following properties from type 'Pick<Omit<{ testID?: string | undefined; pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined; style?: StyleProp<ViewStyle>; horizontal?: boolean | null | undefined; ... 101 more ...; persistentScrollbar?: boolean | undefined; }, keyof StyledProps<...>> & StyledProps<...> & { ...; } & RefAttributes<...': stickyHeaderHiddenOnScroll, StickyHeaderComponent, href, hrefAttrs, and 2 more. I have to see what could be causing this. |
I'm also wondering if downgrading TypeScript to 4.4.3 could help. Apologies for this, TypeScript is changing fast which makes things tricky for library authors. |
I've made some minor progress on this. But
|
Still happening for me with TextInput using the deps versions you suggested @nandorojo |
Going to move this to #276 |
When I try to compile the code below, I get a missing props error for the TextInput component. Could you please clarify what prop field I am missing? Using the react native equivalent component does seem to work for some odd reason. Having some documentation with the required props for the TextInput component would have really helped.
The text was updated successfully, but these errors were encountered: