How to call FFI functions in react-native
Asked Answered
G

0

7

I have a Rust library that exposes a C-callable FFI. I want to be able to use it in React Native by building a Native Module for Android.

I'm looking into jnr-ffi for building the native module, but the documentation isn't very clear.

Can someone guide me how something like this would work? Are there any alternatives? E.g. something like node-ffi but for react-native where i don't need to build a native module at all?

Gilmore answered 26/6, 2020 at 6:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.