-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native.config.js
More file actions
34 lines (32 loc) · 997 Bytes
/
react-native.config.js
File metadata and controls
34 lines (32 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const path = require('path');
const codegenSourceDirAndroid = path.join(__dirname, 'android', 'src', 'newarch');
const codegenSourceDirIos = path.join(__dirname, 'ios', 'Sources', 'AmplyReactNative');
const androidProjectDir = path.join(__dirname, 'android');
const androidJniDir = path.join(androidProjectDir, 'src', 'main', 'jni');
module.exports = {
dependency: {
platforms: {
android: {
sourceDir: androidProjectDir,
packageImportPath: 'import tools.amply.sdk.reactnative.AmplyPackage;',
packageInstance: 'new AmplyPackage()',
cmakeListsPath: path.join(androidJniDir, 'CMakeLists.txt'),
},
ios: null,
},
},
commands: [],
assets: [],
codegenConfig: {
name: 'AmplyReactNative',
type: 'modules',
jsSrcsDir: path.join(__dirname, 'src'),
android: {
sourceDir: codegenSourceDirAndroid,
packageName: 'tools.amply.sdk.reactnative',
},
ios: {
sourceDir: codegenSourceDirIos,
},
},
};