Skip to main content
Version: 0.2.4

Interface: MobileModel

MobileModelModule.MobileModel

Methods

download

download(modelPath): Promise<string>

Download a model to the local file system and return the local file path as a model. If the model path is a file path already, it will return the same path as a result.

deprecated Use third-party file downloader (e.g., expo-file-system or react-native-fs)

Parameters

NameTypeDescription
modelPathModelPathThe model path as require or uri (i.e., require).

Returns

Promise<string>