Skip to content

Commit

Permalink
fix: hide select example question in local library
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jul 22, 2024
1 parent 5052841 commit 1fd2528
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/create-react-native-library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ async function create(_argv: yargs.Arguments<any>) {
});
},
},
{
];

if (!local) {
questions.push({
type: 'select',
name: 'example',
message: 'What type of example app do you want to create?',
Expand All @@ -486,8 +489,8 @@ async function create(_argv: yargs.Arguments<any>) {
return true;
});
},
},
];
});
}

const validate = (answers: Answers) => {
for (const [key, value] of Object.entries(answers)) {
Expand Down

0 comments on commit 1fd2528

Please sign in to comment.