initial commit
This commit is contained in:
14
.oh-my-zsh/plugins/react-native/README.md
Executable file
14
.oh-my-zsh/plugins/react-native/README.md
Executable file
@@ -0,0 +1,14 @@
|
||||
# React Native
|
||||
|
||||
**Maintainer:** [BilalBudhani](https://github.com/BilalBudhani)
|
||||
|
||||
### List of Aliases
|
||||
|
||||
Alias | React Native command
|
||||
------|---------------------
|
||||
**rnand** | *react-native run-android*
|
||||
**rnios** | *react-native run-ios*
|
||||
**rnios4s** | *react-native run-ios --simulator "iPhone 4s"*
|
||||
**rnios5** | *react-native run-ios --simulator "iPhone 5"*
|
||||
**rnios5s** | *react-native run-ios --simulator "iPhone 5s"*
|
||||
|
||||
23
.oh-my-zsh/plugins/react-native/_react-native
Executable file
23
.oh-my-zsh/plugins/react-native/_react-native
Executable file
@@ -0,0 +1,23 @@
|
||||
#compdef react-native
|
||||
#autoload
|
||||
|
||||
local -a _1st_arguments
|
||||
_1st_arguments=(
|
||||
'start:starts the webserver'
|
||||
'bundle:builds the javascript bundle for offline use'
|
||||
'new-library:generates a native library bridge'
|
||||
'android:generates an Android project for your app'
|
||||
'run-android:builds your app and starts it on a connected Android emulator or device'
|
||||
'upgrade:upgrade your apps template files to the latest version; run this after updating the react-native version in your package.json and running npm install'
|
||||
)
|
||||
|
||||
|
||||
_arguments \
|
||||
'(--version)--version[show version]' \
|
||||
'(--help)--help[show help]' \
|
||||
'*:: :->subcmds' && return 0
|
||||
|
||||
if (( CURRENT == 1 )); then
|
||||
_describe -t commands "react-native subcommand" _1st_arguments
|
||||
return
|
||||
fi
|
||||
9
.oh-my-zsh/plugins/react-native/react-native.plugin.zsh
Executable file
9
.oh-my-zsh/plugins/react-native/react-native.plugin.zsh
Executable file
@@ -0,0 +1,9 @@
|
||||
alias rnand='react-native run-android'
|
||||
alias rnios4s='react-native run-ios --simulator "iPhone 4s"'
|
||||
alias rnios5='react-native run-ios --simulator "iPhone 5"'
|
||||
alias rnios5s='react-native run-ios --simulator "iPhone 5s"'
|
||||
alias rnios6='react-native run-ios --simulator "iPhone 6"'
|
||||
alias rnios6s='react-native run-ios --simulator "iPhone 6s"'
|
||||
alias rnios='react-native run-ios'
|
||||
alias rnlink='react-native link'
|
||||
|
||||
Reference in New Issue
Block a user