mirror of
https://github.com/zhigang1992/react-native-video-cache.git
synced 2026-01-12 08:23:45 +08:00
12 lines
247 B
JavaScript
12 lines
247 B
JavaScript
import { NativeModules } from 'react-native';
|
|
|
|
export default (url) => {
|
|
if (!global.nativeCallSyncHook) {
|
|
return url
|
|
}
|
|
return NativeModules.VideoCache.convert(url)
|
|
};
|
|
|
|
export const convertAsync = NativeModules.VideoCache.convertAsync;
|
|
|