forked from react-native-community/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add support for
add-platform
command
fix: include `postInitScript.js` in package files fix: remove `chalk` dependency
- Loading branch information
1 parent
40c5033
commit 41ad6e8
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require("path"); | ||
|
||
// ANSI escape codes for colors and formatting | ||
const reset = "\x1b[0m"; | ||
const cyan = "\x1b[36m"; | ||
const bold = "\x1b[1m"; | ||
|
||
function printInitScript() { | ||
const projectDir = path.resolve(); | ||
|
||
const instructions = ` | ||
${cyan}Run instructions for ${bold}visionOS${reset}${cyan}:${reset} | ||
• cd "${projectDir}/visionos" | ||
• Install Cocoapods | ||
• bundle install # you need to run this only once in your project. | ||
• bundle exec pod install | ||
• cd .. | ||
• npx react-native run-visionos | ||
`; | ||
|
||
console.log(instructions); | ||
} | ||
|
||
printInitScript(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters