create-react-native-library
Advanced tools
Comparing version 0.38.2 to 0.38.3
@@ -319,15 +319,18 @@ "use strict"; | ||
} | ||
}, { | ||
type: 'select', | ||
name: 'example', | ||
message: 'What type of example app do you want to create?', | ||
choices: (_, values) => { | ||
return EXAMPLE_CHOICES.filter(choice => { | ||
if (values.type) { | ||
return values.type === 'library' ? choice.value === 'expo' : choice.value !== 'expo'; | ||
} | ||
return true; | ||
}); | ||
} | ||
}]; | ||
if (!local) { | ||
questions.push({ | ||
type: 'select', | ||
name: 'example', | ||
message: 'What type of example app do you want to create?', | ||
choices: (_, values) => { | ||
return EXAMPLE_CHOICES.filter(choice => { | ||
if (values.type) { | ||
return values.type === 'library' ? choice.value === 'expo' : choice.value !== 'expo'; | ||
} | ||
return true; | ||
}); | ||
} | ||
}); | ||
} | ||
const validate = answers => { | ||
@@ -334,0 +337,0 @@ for (const [key, value] of Object.entries(answers)) { |
{ | ||
"name": "create-react-native-library", | ||
"version": "0.38.2", | ||
"version": "0.38.3", | ||
"description": "CLI to scaffold React Native libraries", | ||
@@ -68,3 +68,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5052841763c6b50ea474f272480dc86c3f466138" | ||
"gitHead": "af4dbda7cf9b703ecc7a78703c8c43d388a89acd" | ||
} |
Sorry, the diff of this file is not supported yet
3548325
15404