We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422b523 commit 617b40dCopy full SHA for 617b40d
docs/src/articles/design-system/use-theme-variables.md
@@ -14,15 +14,17 @@ import { View } from 'react-native';
14
import { withStyles } from '@ui-kitten/components';
15
16
const AwesomeView = (props) => {
17
- const { themedStyle, style, ...restProps } = this.props;
+ const { themedStyle, style, ...restProps } = props;
18
19
return (
20
- <View {...restProps} style={[themedStyle, style]} />
+ <View {...restProps} style={[themedStyle.awesome, style]} />
21
);
22
};
23
24
export const ThemedAwesomeView = withStyles(AwesomeView, (theme) => ({
25
- backgroundColor: theme['color-primary-500'],
+ awesome: {
26
+ backgroundColor: theme['color-primary-500'],
27
+ },
28
}));
29
```
30
0 commit comments