File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ npx --package react-native-test-app@latest init
3333In this example, we will create a project named "sample" in ` sample ` with apps
3434for all platforms:
3535
36- ``` sh
36+ ```
3737✔ What is the name of your test app? … sample
3838? Which platforms do you need test apps for? ›
3939Instructions:
@@ -44,6 +44,7 @@ Instructions:
4444◉ Android
4545◉ iOS
4646◉ macOS
47+ ◯ visionOS (Experimental)
4748◉ Windows
4849✔ Where should we create the new project?? … sample
4950```
@@ -100,9 +101,11 @@ in the wiki.
100101[ react-native-datetimepicker] ( https://github.com/react-native-datetimepicker/datetimepicker ) &bull ;
101102[ react-native-google-signin] ( https://github.com/react-native-google-signin/google-signin ) &bull ;
102103[ react-native-image-editor] ( https://github.com/callstack/react-native-image-editor ) &bull ;
104+ [ react-native-keychain] ( https://github.com/oblador/react-native-keychain ) &bull ;
103105[ react-native-masked-view] ( https://github.com/react-native-masked-view/masked-view ) &bull ;
104106[ react-native-menu] ( https://github.com/react-native-menu/menu ) &bull ;
105107[ react-native-netinfo] ( https://github.com/react-native-netinfo/react-native-netinfo ) &bull ;
108+ [ react-native-pager-view] ( https://github.com/callstack/react-native-pager-view ) &bull ;
106109[ react-native-segmented-control] ( https://github.com/react-native-segmented-control/segmented-control ) &bull ;
107110[ react-native-webview] ( https://github.com/react-native-webview/react-native-webview ) &bull ;
108111[ realm-js] ( https://github.com/realm/realm-js ) &bull ;
Original file line number Diff line number Diff line change 9797 "uuid" : " ^10.0.0"
9898 },
9999 "peerDependencies" : {
100- "@callstack/react-native-visionos" : " 0.73 - 0.75 " ,
100+ "@callstack/react-native-visionos" : " 0.73 - 0.76 " ,
101101 "@expo/config-plugins" : " >=5.0" ,
102102 "react" : " 17.0.1 - 19.0" ,
103- "react-native" : " 0.66 - 0.75 || >=0.76 .0-0 <0.76 .0" ,
103+ "react-native" : " 0.66 - 0.76 || >=0.77 .0-0 <0.77 .0" ,
104104 "react-native-macos" : " ^0.0.0-0 || 0.66 || 0.68 || 0.71 - 0.75" ,
105105 "react-native-windows" : " ^0.0.0-0 || 0.66 - 0.75"
106106 },
Original file line number Diff line number Diff line change 44 * Reminder that this script is meant to be runnable without installing
55 * dependencies. It can therefore not rely on any external libraries.
66 */
7- import { spawn } from "node:child_process" ;
7+ import { spawn , spawnSync } from "node:child_process" ;
88import * as fs from "node:fs" ;
99import { URL , fileURLToPath } from "node:url" ;
1010import * as util from "node:util" ;
@@ -327,8 +327,7 @@ if (platforms.length === 0) {
327327 } )
328328 . then ( ( ) => {
329329 showBanner ( `Reconfigure existing app` ) ;
330- $ (
331- PACKAGE_MANAGER ,
330+ const args = [
332331 "configure-test-app" ,
333332 "-p" ,
334333 "android" ,
@@ -339,8 +338,12 @@ if (platforms.length === 0) {
339338 "-p" ,
340339 "visionos" ,
341340 "-p" ,
342- "windows"
343- ) ;
341+ "windows" ,
342+ ] ;
343+ const { status } = spawnSync ( PACKAGE_MANAGER , args , { stdio : "inherit" } ) ;
344+ if ( status !== 1 ) {
345+ throw new Error ( "Expected an error" ) ;
346+ }
344347 } )
345348 . then ( ( ) => {
346349 showBanner ( green ( "✔ Pass" ) ) ;
Original file line number Diff line number Diff line change @@ -12370,10 +12370,10 @@ __metadata:
1237012370 typescript: "npm:^5.0.0"
1237112371 uuid: "npm:^10.0.0"
1237212372 peerDependencies:
12373- "@callstack/react-native-visionos": 0.73 - 0.75
12373+ "@callstack/react-native-visionos": 0.73 - 0.76
1237412374 "@expo/config-plugins": ">=5.0"
1237512375 react: 17.0.1 - 19.0
12376- react-native: 0.66 - 0.75 || >=0.76 .0-0 <0.76 .0
12376+ react-native: 0.66 - 0.76 || >=0.77 .0-0 <0.77 .0
1237712377 react-native-macos: ^0.0.0-0 || 0.66 || 0.68 || 0.71 - 0.75
1237812378 react-native-windows: ^0.0.0-0 || 0.66 - 0.75
1237912379 peerDependenciesMeta:
You can’t perform that action at this time.
0 commit comments