I want to create client libraries for my backend for iOS and Android. They will be using native services like location services.
Instead of creating a seperate SDK for each, I was wondering if I would use react native to create the SDK, and then compile(eject) it to a native iOS pod or android aar library. Is this possible to achieve with react native, and if yes, how can this be achieved.
If not react native, then is there any cross platform framework which allows this?
1 Answers
Answers 1
If understood correctly, you want to develop react native libs then use in none react native projects. For example adding them to gradle or pods, But it's not available.
Because react native platform is different and needs bunch of other dependencies to be run. It's looks like running another engine inside the other one.
You can build SDK's based on Hybrid/Native frameworks and use them in those frameworks but you can't export them and use like native libraries(pod/gradle).
Except C++ programming for cross platform purposes, you should search in github or other repositories to find specific types of libraries that you need.
0 comments:
Post a Comment