当我滚动浏览列表时,我遇到了一些问题.还要注意底部的巨大空间.观看视频:https://vimeo.com/215349521
据我所知,我没有犯任何重大错误.但我确实相信问题是由于CellMeasurer.
Chrome版本:58.0.3029.81
class PromotionList extends Component {
constructor(props) {
super(props);
this.cache = new CellMeasurerCache({
defaultHeight: 100,
fixedWidth: true,
});
this.rowRenderer = this.rowRenderer.bind(this);
}
componentWillMount() {
this.props.fetchPromotionsIfNeeded();
}
rowRenderer({ index, parent }) {
const { promotions } = this.props;
const data = promotions.list[index];
return (
<CellMeasurer
cache={this.cache}
columnIndex={0}
key={uuid.v1()}
parent={parent}
rowIndex={index}
>
<BlobItem
key={uuid.v1()}
type={BlobTypes.promotion}
data={data}
onClick={this.props.onItemClick}
index={index}
/>
</CellMeasurer>
);
}
render() {
const { promotions, previewSize } = this.props;
return (
<List
height={300}
width={previewSize.width}
rowCount={promotions.list.length} …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 gitlab 设置 CI。当我尝试在本地构建时,出现此错误:xcodebuild: error: 'APP.xcworkspace' does not exist.
“APP”不是真实姓名。我也在使用 CocoaPods。
在终端中运行此命令后会发生这种情况:
gitlab-ci-multi-runner exec shell build_project
我已经检查过,该文件确实存在于我调用命令的同一文件夹中。
这是我的 .gitlab-ci.yml 文件:
stages:
- build
build_project:
stage: build
script:
- xcodebuild clean -workspace APP.xcworkspace -scheme APP | xcpretty
- xcodebuild test -workspace APP.xcworkspace -scheme APP -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' | xcpretty -s
tags:
- v0.0.1
Run Code Online (Sandbox Code Playgroud)
Xcode 版本:8.2.1
Cocoapods 版本:1.2.0
Gitlab-runner 版本:1.11.0
亚历克斯
我正在关注创建自签名证书的AWS GUIDE.但在创建我的CA之后,我尝试将其上传到AWS IOT我收到此错误:
命令:
aws iot register-ca-certificate --ca-certificate file://CA_cert.pem --verification-cert file://verificationCert.crt
错误:
An error occurred (CertificateValidationException) when calling the RegisterCACertificate operation: CA certificate is not valid. The CA certificate does not have the basicConstraints extension as true
任何帮助赞赏!