Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

How to target and set styles between styled components in React Native withTypescript

$
0
0

I want to do like I always did in React with Styled Components.

import styled from "styled-components";

import {Wrapper as CardComponent} from '../../components/Card/style';

export const Wrapper = styled.div`
 ${CardComponent}{
 ...the styles
}
`

But this isn't working with React Native.

import styled from "styled-components/native";

import {Wrapper as CardComponent} from '../../components/Card/style';

export const Wrapper = styled.View`
 ${CardComponent}{
 ...the styles
}
`

There is any way to target and set rules between styled components in react native?


Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>