Skip to content

Instantly share code, notes, and snippets.

View ezilox's full-sized avatar

Tamir Hizmi` ezilox

View GitHub Profile
import { withAppBuildGradle } from '@expo/config-plugins';
const withFFmpegPackageOptions = (config) => {
return withAppBuildGradle(config, async config => {
const packagingOptions =
"\nandroid {\n \
packagingOptions {\n \
pickFirst 'lib/x86/libc++_shared.so'\n \
pickFirst 'lib/x86_64/libc++_shared.so'\n \
pickFirst 'lib/armeabi-v7a/libc++_shared.so'\n \
import { withProjectBuildGradle } from '@expo/config-plugins';
const withFFmpegPackage = (config) => {
return withProjectBuildGradle(config, async config => {
const newContents = config.modResults.contents.replace(
'targetSdkVersion = 30\n',
'targetSdkVersion = 30\nreactNativeFFmpegPackage = "min-gpl-lts"\n'
);
config.modResults.contents = newContents
console.log(config);