Replies: 13 comments
-
I wrote a walkthrough, Build and Run Node-API Modules in React Native, which shows how to create a Node-API module to run on Node.js, Android, and iOS. I am not familiar with the Ferric side of things, but hopefully that fills in some of the gaps. |
Beta Was this translation helpful? Give feedback.
-
I didnt check, though It might be possible by importing the .so file in android and the respective on ios. I suppose having it added in the init or readme, would bring some clarity. |
Beta Was this translation helpful? Give feedback.
-
I don't fully understand your request. Are you asking for ways to load the prebuilds outside of the context of React Native? |
Beta Was this translation helpful? Give feedback.
-
No, in the context. But also in the native side. |
Beta Was this translation helpful? Give feedback.
-
Please elaborate more on your question, provide an example or add some other context. Ferric is meant to produce prebuilds for Android and iOS out of the box. What do you mean by, "in case something is needed from it?" |
Beta Was this translation helpful? Give feedback.
-
That was badly written. Fixed. |
Beta Was this translation helpful? Give feedback.
-
I suspect this is mostly a case of missing examples and documentation. In its current form, loading the prebuild requires three things:
|
Beta Was this translation helpful? Give feedback.
-
That seem to be steps for JS though, not actually use the rust native API in the android/ios side.
this is somewhat what I previously meant, in case, it was needed. |
Beta Was this translation helpful? Give feedback.
-
Sorry 😔 I'm still not getting this. I'm genuinely curious, but I can't wrap my head around it. Do you want to call into platform-specific native APIs (such as the Android SDK) from your Rust library code? Or do you want to load or call into your Node-API addon from native code (Java, Kotlin, Objective-C or Swift) - if yes for what purpose? Can you speak a bit about the use-case? What are you trying to achieve here? |
Beta Was this translation helpful? Give feedback.
-
None at the moment, but I had some thoughts on building a library which could make use of this. But still not sure I will go forward with it. Some APIs from android or ios, might not be available on rust, so, some impl could end up needing a mix up. |
Beta Was this translation helpful? Give feedback.
-
I checked some information. If the output supported multiple ABIs targets. For android, in the most succinct way, would be something like.
In
For ios, not entirely sure yet, but likely to be with the
I suppose there is no real way to automate without specifying the settings. |
Beta Was this translation helpful? Give feedback.
-
Can't really comment meaningfully before I understand what you're trying to achieve. But it does seem like you are painting the picture of what our host package is already doing while auto-linking. |
Beta Was this translation helpful? Give feedback.
-
Would be nice if there were documentation for what each lib of the project can do and does. And what setting is required from each, if any. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Is there a way to get ferric-cli / napi working with Android / iOS?
Beta Was this translation helpful? Give feedback.
All reactions