File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
packages/create-react-native-library/src Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ import { createInitialGitCommit } from './utils/initialCommit';
20
20
import { prompt } from './utils/prompt' ;
21
21
import { resolveNpmPackageVersion } from './utils/resolveNpmPackageVersion' ;
22
22
23
- const FALLBACK_BOB_VERSION = '0.38.3 ' ;
23
+ const FALLBACK_BOB_VERSION = '0.40.4 ' ;
24
24
const FALLBACK_NITRO_MODULES_VERSION = '0.22.1' ;
25
+ const SUPPORTED_REACT_NATIVE_VERSION = '0.78.2' ;
25
26
26
27
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
27
28
yargs
@@ -69,6 +70,8 @@ async function create(_argv: yargs.Arguments<Args>) {
69
70
const promptAnswers = await prompt ( questions , argv ) ;
70
71
const answers : Answers = {
71
72
...promptAnswers ,
73
+ reactNativeVersion :
74
+ promptAnswers . reactNativeVersion ?? SUPPORTED_REACT_NATIVE_VERSION ,
72
75
local,
73
76
} ;
74
77
@@ -94,7 +97,7 @@ async function create(_argv: yargs.Arguments<Args>) {
94
97
95
98
await fs . mkdirp ( folder ) ;
96
99
97
- if ( answers . reactNativeVersion != null ) {
100
+ if ( answers . reactNativeVersion !== SUPPORTED_REACT_NATIVE_VERSION ) {
98
101
printUsedRNVersion ( answers . reactNativeVersion , config ) ;
99
102
}
100
103
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export function printUsedRNVersion(
129
129
) {
130
130
if ( config . example === 'vanilla' ) {
131
131
console . log (
132
- `${ kleur . blue ( 'ℹ' ) } Using ${ kleur . cyan (
132
+ `${ kleur . blue ( 'ℹ' ) } Using untested ${ kleur . cyan (
133
133
`react-native@${ version } `
134
134
) } for the example`
135
135
) ;
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export type Answers = {
181
181
languages : ProjectLanguages ;
182
182
type : ProjectType ;
183
183
example : ExampleApp ;
184
- reactNativeVersion ? : string ;
184
+ reactNativeVersion : string ;
185
185
local ?: boolean ;
186
186
} ;
187
187
You can’t perform that action at this time.
0 commit comments