Closed
Description
Description
Hey. I just installed and set up ffmpeg-kit for my brand new React Native app and once I start the app I get a warning:
Module FFmpegKitReactNativeModule requires main queue setup since it overrides `init` but doesn't
implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all
native modules on a background thread unless explicitly opted-out of
Expected behavior
There should be no warning
Current behavior
There is a warning
To Reproduce
npx react-native init TestApp
yarn add ffmpeg-kit-react-native
set platform :ios, '12.1'
in ios/Podfile
npx pod-install
add import { FFmpegKit, ReturnCode } from 'ffmpeg-kit-react-native';
to any file (e.g. App.js
)
build and run the app
Logs
BUNDLE ./index.js
WARN Module FFmpegKitReactNativeModule requires main queue setup since it overrides `init` but doesn't
implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all
native modules on a background thread unless explicitly opted-out of.
Environment
- Platform: iOS
- Architecture: arm64 m1 macbook air
- Version 4.5
- Source branch (if applicable) v4.5 release from npm
- React Native 0.65.1
- Xcode version (if applicable) 15
- Cocoapods version (if applicable) 1.11.2
Other
Via Google I found other libs with the same bug (and also a possible 4 lines fix, see: facebook/react-native#24314)