- Deberás tener corriendo nodeJS 16 por lo menos (proyecto ejecutado en
v16.14.2). - Deberás ver qué versión instalar de Java deberás tener instalada vs la versión del gradle que tengas en el proyecto.
(Para ver qué version tienes, debes ir a
android\gradle\wrapper\gradle-wrapper.propertiesy buscar el atributodistributionUrl)
cd "D:\Documentos\react-native projects\WorkerMultithreadingSample"
npx react-native run-android
npx react-native run-iosSi deseas renombrar todo el proyecto desde raíz, debes realizar los siguientes pasos:
- Copy icons (if you changed it): (it will be replaced by defaults after)
- from iOS:
ios/WorkerMultithreadingSample/Images.xcassets
- from Android:
android\app\src\main\res\drawableandroid\app\src\main\res\mipmap-hdpiandroid\app\src\main\res\mipmap-mdpiandroid\app\src\main\res\mipmap-xhdpiandroid\app\src\main\res\mipmap-xxhdpiandroid\app\src\main\res\mipmap-xxxhdpi
- Update
displayNameandnameinapp.jsonto the new name - Delete
ios/andandroid/directories
- if you got some java.exe processes running in background, you can execute before deleting those folders:
wmic process where "name like '%java%'" delete- Run
npx react-native eject(install first usingnpm i react-native-eject @react-native-community/cli) - Replace the icons you copied earlier
- Please reinstall Install Bare Workflow Expo
- Start your app and hope it worked! Or read the rest of this tutorial.
- Execute React Native create command: (https://reactnative.dev/docs/environment-setup)
# add '... --version 0.71.1' if you want a specific React Native project version.
npx react-native init MyAwesomeProject- Execute Automatic Installation to integrate Bare Workflow Expo: (see
https://docs.expo.dev/bare/installing-expo-modules/)
# ignore ERROR:'pod-install' if you're on Windows / Linux.
npx install-expo-modules@latest- Probar si Expo funciona antes de echarle mano al código:
expo install expo-constants// App.tsx
import Constants from 'expo-constants';
console.log(Constants.systemFonts);