Quoi choisir?
📚 Expo
+---------------------------+
| Expo |
| ▼ |
| React Native CLI |
| +---------------------+ |
| | React / JavaScript | |
| | ▼ | |
| | React Native | |
| | +---------------+ | |
| | | | | |
| | | Android / iOS | | |
| | | | | |
| | +---------------+ | |
| +---------------------+ |
+---------------------------+
# as root
su -l root
apt install git nodejs npm
echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
En tant qu'usager standard
mkdir -p ~/.npm-global/lib
npm config set prefix '~/.npm-global'
su root -c 'echo "export PATH=~/.npm-global/bin:\$PATH" > /etc/profile.d/npm.sh'
Optionnel pour tester nativement sur un appareil Android
node -v
npm -v
npx create-expo-app test
cd test
npx expo start # --tunnel si pas sur le meme reseau, au Cegep etre sur TechInfo-Etudiant
# Répondre Y pour l'installation de ngrok
# Scanner le code QR avec Expo Go
📚 Expo
📚 Expo CLI