Lines Matching refs:asset
8 asset: MediaLibrary.Asset;
9 onPress: (asset: MediaLibrary.Asset) => void;
13 const { asset } = this.props;
14 this.props.onPress(asset);
17 getAssetData(asset: MediaLibrary.Asset) {
18 switch (asset.mediaType) {
22 description: `${asset.width}x${asset.height}`,
23 preview: <Image style={styles.preview} source={{ uri: asset.uri }} resizeMode="cover" />,
28 description: `${Math.round(asset.duration)}s`,
29 preview: <Image style={styles.preview} source={{ uri: asset.uri }} resizeMode="cover" />,
34 description: `${Math.round(asset.duration)}s`,
47 const { asset, style } = this.props;
48 const data = this.getAssetData(asset);