Skip to content

Commit

Permalink
fix: fix incorrect check for --react-native-version (#709)
Browse files Browse the repository at this point in the history
Currently when generating a project, it prints `Using
react-native@undefined for the example` due to incorrect check for
`undefined` and `null`.
  • Loading branch information
satya164 authored Dec 4, 2024
1 parent 78f16fc commit 6628b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-react-native-library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function create(_argv: yargs.Arguments<Args>) {

await fs.mkdirp(folder);

if (answers.reactNativeVersion !== null) {
if (answers.reactNativeVersion != null) {
printUsedRNVersion(answers.reactNativeVersion, config);
}

Expand Down

0 comments on commit 6628b2a

Please sign in to comment.