-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
57 lines (48 loc) · 1.77 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!bin/sh
show_package_manager_menu(){
PS3='Please enter your choice:'
options=("NPM" "Yarn")
select opt in "${options[@]}"
do
case $opt in
"NPM")
install_dependencies "NPM" "npm install"
break
;;
"Yarn")
install_dependencies "Yarn" "yarn add"
break
;;
*) printf "\e[31m$REPLY is an Invalid Option.\n\n\e[0m";;
esac
done
}
install_dependencies(){
printf "\n\nInstalling the Peer Dependencies using $1...\n\n"
$2 @react-native-community/[email protected]\
@react-navigation/[email protected]\
@react-navigation/[email protected]\
@react-navigation/[email protected]\
@fortawesome/[email protected]\
@fortawesome/[email protected]\
@fortawesome/[email protected]\
@fortawesome/[email protected]\
@react-native-community/[email protected]\
}
clear
printf "Thank you for choosing \e[36;3mreact-native-uix\e[0m! Which package manager would you like to use to install the Peer Dependencies? \n\n"
show_package_manager_menu
printf "\e[32mFinished! The Peer Dependencies have successfully been installed.\n\n\e[0m"