css - 如何在 React Native withTypescript 中定位和设置样式组件之间的样式
问题描述
我想像往常一样在 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
}
`
但这不适用于 React Native。
import styled from "styled-components/native";
import {Wrapper as CardComponent} from '../../components/Card/style';
export const Wrapper = styled.View`
${CardComponent}{
...the styles
}
`
有什么方法可以在反应原生的样式组件之间定位和设置规则?
解决方案
推荐阅读
- python - 使用 Python 3.6 在 Windows 64 位上安装 Tensorflow
- html - 如何根据angularjs中的名称允许下拉框
- elasticsearch - 如何在查询匹配中设置最小词频?
- scala - Spark 2.2:Spark SQL 是否使用先前执行查询的内存结果?
- graphql-subscriptions - graphql 订阅无法始终如一地工作
- wordpress - 在woocommerce产品中单击父类别时看不到子类别的产品
- python - keras:如何使用 model.train_on_batch() 的学习率衰减
- amazon-web-services - S3 策略 - 仅列出用户的特定存储桶
- c++ - 使用从 IP 摄像机接收的流的 OpenCV 进行有效的运动检测
- swift - Swift:我在 Firebase 存储中的文件不会被删除