You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While integrating the Carbon library into my project, I followed the steps provided in the official documentation. However, I encountered and resolved a couple of issues during the process:
iOS Issue: Pod Installation
When running the pod install command, I encountered an error. This was resolved by running the following command to ensure CocoaPods was properly installed: sudo gem install cocoapods
Android Issue: Font Assets Configuration
While running the app on Android Studio, an issue occurred with the assets configuration. The problem arose because the assets configuration is not directly available in the android block of the build.gradle file. To fix this:
Open the android/app/build.gradle File:
Locate the android block.
Add the sourceSets Configuration:
Update the file to reference the src/main/assets/fonts directory. The final configuration should look like this:
While integrating the Carbon library into my project, I followed the steps provided in the official documentation. However, I encountered and resolved a couple of issues during the process:
iOS Issue: Pod Installation
When running the pod install command, I encountered an error. This was resolved by running the following command to ensure CocoaPods was properly installed:
sudo gem install cocoapods
Android Issue: Font Assets Configuration
While running the app on Android Studio, an issue occurred with the assets configuration. The problem arose because the assets configuration is not directly available in the android block of the build.gradle file. To fix this:
Open the android/app/build.gradle File:
Locate the android block.
Add the sourceSets Configuration:
Update the file to reference the src/main/assets/fonts directory. The final configuration should look like this:
This ensures that the fonts in src/main/assets/fonts are included in the build.
After making the adjustments, I followed these steps to clean and rebuild the project:
Clean the Project:
cd android
./gradlew clean
Rebuild the Project:
cd ..
npx react-native run-android
With these fixes, I was able to successfully set up the Carbon library and run the application on both iOS and Android.
The text was updated successfully, but these errors were encountered: