diff --git a/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts b/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts index 92326ebf4..303d2a341 100644 --- a/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts +++ b/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts @@ -139,9 +139,9 @@ export default async function generateExampleApp({ ); } - // `npx @react-native-community/cli init --directory example --skip-install` + // `npx @react-native-community/cli@latest init --directory example --skip-install` args = [ - `@react-native-community/cli`, + `@react-native-community/cli@latest`, 'init', `${config.project.name}Example`, '--package-name',