本文整理汇总了TypeScript中react-native/Libraries/Image/resolveAssetSource.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
setNowPlaying: function(info: TPlayingInfo) {
// Check if we have an android asset from react style image require
if (info.artwork) {
info.artwork = resolveAssetSource(info.artwork) || info.artwork
}
NativeMusicControl.setNowPlaying(info)
},
示例2: resolveAssetSource
resolveAssetSource(source: any): any {
return resolveAssetSource(source);
}
示例3: share
/**
* Opens VK share dialog either via VK mobile app or via WebView (if app is not installed on the device).
* Make sure to have correct permissions!
* @param {VKShareOptions} options VKShareOptions object
* @returns {Promise<number>} Promise that resolves with postId number
*/
static share(options: VKShareOptions): Promise<number> {
if (options.image) {
options.image = resolveAssetSource(options.image).uri;
}
return VKShare.share(options);
}