We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm using this code to set two styles in prop of component:
<Button style={[styles.one, styles.two]} > foo </ButtonNative>
But ts show this warning: Type 'ViewStyle[]' has no properties in common with type 'ViewStyle'
Type 'ViewStyle[]' has no properties in common with type 'ViewStyle'
What do you think about defining the prop style in .d.ts, like:
style
.d.ts
interface Button ... { style?: ReactNative.ViewStyle | ReactNative.ViewStyle[]; }
native-base: 2.3.6
The text was updated successfully, but these errors were encountered:
Fix for issue #1520 (TS: update d.ts for prop style accept array )
8448e12
Merge pull request #1525 from GeekyAnts/fix/tsDeclaration/button
f3aed9c
Fixed with 2.3.8
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm using this code to set two styles in prop of component:
But ts show this warning:
Type 'ViewStyle[]' has no properties in common with type 'ViewStyle'
What do you think about defining the prop
style
in.d.ts
, like:native-base: 2.3.6
The text was updated successfully, but these errors were encountered: