Tested with a rust lib and here are my findings #211
Replies: 4 comments
-
First of all, thank your early interest, your early experiments and for sharing your progress! Interesting 🤔 The work on the "threadsafe functions" are in progress, so you'll definitely be blocked on those until they land. |
Beta Was this translation helpful? Give feedback.
-
@kraenhansen It happens at runtime when loading the lib. And then the importeted object is undefined, when comparing against ferric-example for instance. I can probably test with a subset of the functions and see if i get it to run. Here one can see where its being called and showing the
|
Beta Was this translation helpful? Give feedback.
-
Just to be sure, do you still get the error if you load the library unconditionally in the entrypoint of your app ( Trying to rule out whether React Strict Mode or HMR or something else is causing the hook to evaluate twice and thus run |
Beta Was this translation helpful? Give feedback.
-
Was able to get the library to load now, was missing linking
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I know currently certain functions are still in development, but still went ahead and tried it out. Currently it seems like it gets stuck by
napi_get_element
. But below i've also logged all the napi functions this lib uses, as it might be useful. Note I didn't use the feric cli to generate everything from rust.Here is the link to my fork if that helps: https://github.com/ronickg/react-native-node-api
NapiHost: Failed to load library 'lib-react-native-node-api-rn-chia-wallet-sdk--chia-wallet-sdk.so': dlopen failed: cannot locate symbol "napi_get_element
Beta Was this translation helpful? Give feedback.
All reactions