From 7ddd8e863eb9a466f648678aaca32705c300862c Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Wed, 10 Nov 2021 00:13:40 +0000 Subject: [PATCH] auto-initialise the library in the methods under the Packages class for react-native --- react-native/src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/react-native/src/index.js b/react-native/src/index.js index a28c69a..e11270f 100644 --- a/react-native/src/index.js +++ b/react-native/src/index.js @@ -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(); }