This project is a React Native module that is ready to be imported in other native Android/iOS projects.
First, you need to create the SellingCartApp.podspec
file, which contains the project's information and the git URL where it should be hosted.
Pay attention to the line s.resources = 'ios/Pod/Assets/*'
, this is where we are setting the path to the index.ios.jsbundle
file.
- Run
yarn run build-ios-bundle
to create the fileindex.ios.jsbundle
inside the'ios/Pod/Assets/'
folder. - Commit and push to the repo, so that the external projects can use it.
First, you need to create a folder assets
inside SellingCartLibrary/src/main
- Run
yarn run build-android-bundle
to create the bundle - Run
./gradlew :SellingCartLibrary:assembleRelease
to generate the .aar - The artifact will be available at
android/SellingCartLibrary/build/outputs/aar/
.