auto-initialise the library in the methods under the Packages class for react-native

This commit is contained in:
Taner Sener 2021-11-10 00:13:40 +00:00
parent 79cd1ce0b1
commit 7ddd8e863e

View File

@ -2394,7 +2394,9 @@ export class Packages {
*
* @return predicted FFmpegKit ReactNative binary package name
*/
static getPackageName() {
static async getPackageName() {
await FFmpegKitConfig.init();
return FFmpegKitReactNativeModule.getPackageName();
}
@ -2403,7 +2405,9 @@ export class Packages {
*
* @return enabled external libraries
*/
static getExternalLibraries() {
static async getExternalLibraries() {
await FFmpegKitConfig.init();
return FFmpegKitReactNativeModule.getExternalLibraries();
}