4 local -a _1st_arguments
6 'init:<ProjectName> generates a new project and installs its dependencies'
7 'android:creates an empty android project'
8 'start:starts the webserver'
9 'run-ios:builds your app and starts it on iOS simulator'
10 'run-android:builds your app and starts it on a connected Android emulator or device'
11 'new-library:generates a native library bridge'
12 'bundle:builds the javascript bundle for offline use'
13 'unbundle:builds javascript as "unbundle" for offline use'
14 'link:[options] <packageName> links all native dependencies'
15 'unlink:[options] <packageName> unlink native dependency'
16 'install:[options] <packageName> install and link native dependencies'
17 'uninstall:[options] <packageName> uninstall and unlink native dependencies'
18 "upgrade:upgrade your app's template files to the latest version; run this after updating the react-native version in your package.json and running npm install"
19 'log-android:starts adb logcat'
20 'log-ios:starts iOS device syslog tail'
25 '(--version)--version[show version]' \
26 '(--help)--help[show help]' \
27 '*:: :->subcmds' && return 0
29 if (( CURRENT == 1 )); then
30 _describe -t commands "react-native subcommand" _1st_arguments