e1e549ca504b18d3ee5d5ea22d2d99a45ac1f668

Author
debbbbie <debbbbie@163.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

add plugin react-native (#4606)

Diff

 1diff --git a/plugins/react-native/_react-native b/plugins/react-native/_react-native
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..47ee8c3705b73f5d979b24b295d17f138c990e85
 4--- /dev/null
 5+++ b/plugins/react-native/_react-native
 6@@ -0,0 +1,23 @@
 7+#compdef react-native
 8+#autoload
 9+
10+local -a _1st_arguments
11+_1st_arguments=(
12+    'start:starts the webserver'
13+    'bundle:builds the javascript bundle for offline use'
14+    'new-library:generates a native library bridge'
15+    'android:generates an Android project for your app'
16+    'run-android:builds your app and starts it on a connected Android emulator or device'
17+    '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'
18+)
19+
20+
21+_arguments \
22+    '(--version)--version[show version]' \
23+    '(--help)--help[show help]' \
24+    '*:: :->subcmds' && return 0
25+
26+if (( CURRENT == 1 )); then
27+  _describe -t commands "react-native subcommand" _1st_arguments
28+  return
29+fi