Skip to content

Commit

Permalink
fix: fix incorrect check for --react-native-version
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 committed Dec 3, 2024
1 parent e969c89 commit 6f329ac
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 6f329ac

Please sign in to comment.