- 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.properties
y buscar el atributodistributionUrl
)
cd "D:\Documentos\react-native projects\WorkerMultithreadingSample"
npx react-native run-android
npx react-native run-ios
Si 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\drawable
android\app\src\main\res\mipmap-hdpi
android\app\src\main\res\mipmap-mdpi
android\app\src\main\res\mipmap-xhdpi
android\app\src\main\res\mipmap-xxhdpi
android\app\src\main\res\mipmap-xxxhdpi
- Update
displayName
andname
inapp.json
to 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);