Skip to content

Commit 6628b2a

Browse files
authored
fix: fix incorrect check for --react-native-version (#709)
Currently when generating a project, it prints `Using react-native@undefined for the example` due to incorrect check for `undefined` and `null`.
1 parent 78f16fc commit 6628b2a

File tree

1 file changed

+1
-1
lines changed
  • packages/create-react-native-library/src

1 file changed

+1
-1
lines changed

packages/create-react-native-library/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function create(_argv: yargs.Arguments<Args>) {
8282

8383
await fs.mkdirp(folder);
8484

85-
if (answers.reactNativeVersion !== null) {
85+
if (answers.reactNativeVersion != null) {
8686
printUsedRNVersion(answers.reactNativeVersion, config);
8787
}
8888

0 commit comments

Comments
 (0)