auto-initialise the library in the methods under the Packages class for react-native
This commit is contained in:
parent
79cd1ce0b1
commit
7ddd8e863e
8
react-native/src/index.js
vendored
8
react-native/src/index.js
vendored
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user