Skip to content

Commit de5a93d

Browse files
authored
fix: autolinking fix with proper react-native config (#284)
1 parent cdf93b4 commit de5a93d

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

example/android/settings.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
rootProject.name = 'example'
22
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3-
include ':react-native-fbads'
4-
project(':react-native-fbads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbads/android/app')
5-
include ':react-native-fbsdk'
6-
project(':react-native-fbsdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbsdk/android')
73
include ':app'

react-native.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module.exports = {
2-
project: {
3-
ios: {},
4-
android: {
5-
"sourceDir": "android/app"
6-
}
2+
dependency: {
3+
platforms: {
4+
android: {
5+
sourceDir: 'android/app',
6+
},
7+
},
78
},
89
};

0 commit comments

Comments
 (0)