Closed EdmundMai closed 5 years ago
I ended up going with this:
import * as React from "react";
import { Text } from "react-native";
import styled from "styled-components";
import theme from "../../../theme";
export default styled(Text)`
color: ${theme["color-primary-700"]};
`;
omg, that's a quite strange solution :) sorry for late reply. I guess checking this issue can solve your trouble. Please leave feedback if so
Issue type
I'm submitting a ... (check one with "x")
Issue description
I am trying to create a label with a custom background color. Like the one described here: https://akveo.github.io/react-native-ui-kitten/docs/design-system/use-theme-variables#declare-custom-component
Current behavior: The background color is not blue
Expected behavior: The background color should be blue
Steps to reproduce: Copy the lines below
Related code:
Given I have a file in
src/components/shared/Label.tsx
When I use it like this:
Then it should render render And have a different background color
Other information:
OS, device, package version