diff --git a/packages/create-react-native-library/src/index.ts b/packages/create-react-native-library/src/index.ts index 0317ccc49..0b8ec1190 100644 --- a/packages/create-react-native-library/src/index.ts +++ b/packages/create-react-native-library/src/index.ts @@ -471,7 +471,10 @@ async function create(_argv: yargs.Arguments) { }); }, }, - { + ]; + + if (!local) { + questions.push({ type: 'select', name: 'example', message: 'What type of example app do you want to create?', @@ -486,8 +489,8 @@ async function create(_argv: yargs.Arguments) { return true; }); }, - }, - ]; + }); + } const validate = (answers: Answers) => { for (const [key, value] of Object.entries(answers)) {