From 65c2708b02ec31fef20cb1a12c27185941183bef Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Sat, 17 Feb 2018 19:51:45 -0800 Subject: [PATCH] Fix Error: more than one library with package name 'com.reactlibrary' --- lib.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib.js b/lib.js index 74c374a..ed846bc 100644 --- a/lib.js +++ b/lib.js @@ -37,9 +37,14 @@ module.exports = ({ throw new Error('Please specify at least one platform to generate the library.'); } - if (prefix === 'RN') { - console.warn(`While \`RN\` is the default prefix, - it is recommended to customize the prefix.`); + if (prefix === DEFAULT_PREFIX) { + console.warn(`While \`${DEFAULT_PREFIX}\` is the default prefix, + it is recommended to customize the prefix.`); + } + + if (packageIdentifier === DEFAULT_PACKAGE_IDENTIFIER) { + console.warn(`While \`{DEFAULT_PACKAGE_IDENTIFIER}\` is the default package + identifier, it is recommended to customize the package identifier.`); } return Promise.all(templates.filter((template) => {