Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build react native project to aar library?

Is it possible to build a RN project to an AAR package that can be integrated by other Android apps? And is there any similar solution for iOS?

like image 877
Jake Yang Avatar asked Jul 14 '17 09:07

Jake Yang


People also ask

How do I add a library to react-native project?

Linking Libraries on Android If you want to add others libraries, just add them in include tag and mention their path and library in android folder at project as below. Now, add the following dependency in android/app/build. gradle: implementation project(':react-native-vector-icons')


1 Answers

Please refer to this github repo. It has two projects lib and application. "lib" is a RN project which can be build to generate the aar and then import it into "application" project which is an Android project (but it could also be another RN project)

like image 135
Vijay Avatar answered Nov 03 '22 17:11

Vijay