Internxt
- JDK version: 11
- SDK version: 29 or 30
In case that you open the project in Android Studio:
- NDK version: 21.1.6
- CMake version: 3.10.2
Follow these steps before running the project.
- Create a
.npmrc
file from the.npmrc.template
example provided in the repo. - Replace
TOKEN
with your own Github Personal Access Token withread:packages
permission ONLY - Use
yarn
to install project dependencies.
In order to configure the environment, you have to create /env/.env.development.json and /env/.env.production.json files.
Take a look to /env/.env.example.json file to know the required environment variables.
Remember to run the tailwind command during development to dynamically add and remove styles from src/styles/tailwind.json depending on the used classes:
yarn tailwind:dev
We can run the android application in any operating system, although for each one we will have to follow some different steps
In order to connect a real device or an emulator to localhost interface, we have to map used ports in our computer with the device ports.
First list the connected devices:
adb devices
Then use the following command to map DEVICE_ID device PORT to your localhost PORT:
adb -s DEVICE_ID reverse tcp:PORT tcp:PORT
To install the ADB in Mac OS or Linux, execute the following command:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
Opening the project with Android Studio will install the necessary dependencies to start the application.
If you are using Mac OS an receiving the following error when during gradle sync
❌ Caused by: groovy.lang.MissingPropertyException: No such property: logger for class: org.gradle.initialization.DefaultProjectDescriptor
Try opening Android Studio with the command below to ensure Android Studio is able to find Nodeopen -a /Applications/Android\ Studio.app
Configure a virtual device in Android Studio or connect by USB a real device with ADB to run the Android application with the following command using the Expo CLI:
yarn android
You can only run the iOS application on a Mac OS computer.
cd ios
pod install
If your computer is using M1 Apple chipset, replace the pod install
command with the following:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
yarn ios
Current react-native-reanimated fails with Android using RN 0.64, until we upgrade RN version, a patch needs to be added manually: software-mansion/react-native-reanimated#3161 (comment)
This is what you should know about project testing.
Take a look to this official article about testing in React Native.