From e336c68117ee6045b510dd78f19a3b481e4f9bea Mon Sep 17 00:00:00 2001 From: TMaszko Date: Wed, 10 Feb 2021 10:37:51 +0100 Subject: [PATCH] fix: autolinking fix with proper react-native config --- example/android/settings.gradle | 4 ---- react-native.config.js | 11 ++++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 72b8eb80..263c9e8c 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,7 +1,3 @@ rootProject.name = 'example' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) -include ':react-native-fbads' -project(':react-native-fbads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbads/android/app') -include ':react-native-fbsdk' -project(':react-native-fbsdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbsdk/android') include ':app' diff --git a/react-native.config.js b/react-native.config.js index d4b5d3b0..c35e02d5 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,8 +1,9 @@ module.exports = { - project: { - ios: {}, - android: { - "sourceDir": "android/app" - } + dependency: { + platforms: { + android: { + sourceDir: 'android/app', + }, + }, }, };