-
Notifications
You must be signed in to change notification settings - Fork 734
Fix various typing issues #1291
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
Conversation
@@ -39,6 +39,7 @@ export type TextProps = RNTextProps & TypographyModifiers & ColorsModifiers & Ma | |||
*/ | |||
animated?: boolean; | |||
textAlign?: string; | |||
style?: StyleProp<TextStyle | Animated.AnimatedProps<TextStyle>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to Omit<RNTextProps, 'style'>
in TextProps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, weirdly it didn't throw an error on that, anyway fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move more screens to tsx (found it there)
@@ -44,7 +44,7 @@ export type CardSectionProps = ViewProps & { | |||
/** | |||
* Other image props that will be passed to the image | |||
*/ | |||
imageProps?: ImageProps; | |||
imageProps?: Partial<ImageProps>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This: imageProps?: Omit<ImageProps, 'source' | 'style'>;
feels a bit more accurate, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, technically you can also pass source in imageProps and it will work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but I'm not sure it's intentional, approving
Description
Fix various typing issues
Changelog
Fix Button iconSource type, Card.Section ImageProps to not require source and Text to support animated text style