UNPKG

963 BJavaScriptView Raw
1let supportsCodegenConfig = false;
2try {
3 const rnCliAndroidVersion =
4 require('@react-native-community/cli-platform-android/package.json').version;
5 const [major] = rnCliAndroidVersion.split('.');
6 supportsCodegenConfig = major >= 9;
7} catch (e) {
8 // ignore
9}
10
11module.exports = {
12 dependency: {
13 platforms: {
14 android: supportsCodegenConfig ? {
15 componentDescriptors: [
16 "RNSFullWindowOverlayComponentDescriptor",
17 "RNSScreenContainerComponentDescriptor",
18 "RNSScreenNavigationContainerComponentDescriptor",
19 "RNSScreenStackHeaderConfigComponentDescriptor",
20 "RNSScreenStackHeaderSubviewComponentDescriptor",
21 "RNSScreenStackComponentDescriptor",
22 "RNSSearchBarComponentDescriptor",
23 'RNSScreenComponentDescriptor',
24 'RNSModalScreenComponentDescriptor'
25 ],
26 cmakeListsPath: "../android/src/main/jni/CMakeLists.txt"
27 } : {},
28 },
29 },
30}