create-react-native-library
Advanced tools
Comparing version 0.34.1 to 0.34.2
@@ -61,8 +61,7 @@ "use strict"; | ||
}; | ||
const CPP_VIEW_FILES = { | ||
// view_legacy does NOT need component registration | ||
view_mixed: _path.default.resolve(__dirname, '../templates/cpp-view-mixed'), | ||
view_new: _path.default.resolve(__dirname, '../templates/cpp-view-new') | ||
}; | ||
const LANGUAGE_CHOICES = [{ | ||
title: 'Kotlin & Objective-C', | ||
value: 'kotlin-objc', | ||
types: ['module-legacy', 'module-new', 'module-mixed', 'view-mixed', 'view-new', 'view-legacy'] | ||
}, { | ||
title: 'Java & Objective-C', | ||
@@ -72,5 +71,5 @@ value: 'java-objc', | ||
}, { | ||
title: 'Kotlin & Objective-C', | ||
value: 'kotlin-objc', | ||
types: ['module-legacy', 'module-new', 'module-mixed', 'view-mixed', 'view-new', 'view-legacy'] | ||
title: 'Kotlin & Swift', | ||
value: 'kotlin-swift', | ||
types: ['module-legacy', 'view-legacy'] | ||
}, { | ||
@@ -81,6 +80,2 @@ title: 'Java & Swift', | ||
}, { | ||
title: 'Kotlin & Swift', | ||
value: 'kotlin-swift', | ||
types: ['module-legacy', 'view-legacy'] | ||
}, { | ||
title: 'C++ for Android & iOS', | ||
@@ -529,7 +524,2 @@ value: 'cpp', | ||
} | ||
if (moduleType === 'view') { | ||
if (arch === 'new' || arch === 'mixed') { | ||
await copyDir(CPP_VIEW_FILES[`${moduleType}_${arch}`], folder); | ||
} | ||
} | ||
} | ||
@@ -536,0 +526,0 @@ if (example !== 'none') { |
{ | ||
"name": "create-react-native-library", | ||
"version": "0.34.1", | ||
"version": "0.34.2", | ||
"description": "CLI to scaffold React Native libraries", | ||
@@ -68,3 +68,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "1d82fb23700516ca8c2d5864c6df90f9ae3e3c11" | ||
"gitHead": "b0316a643a9a01544c2ad1acc3c511a786653005" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3536712
122
15367