This library packages Monero C++ client for use on React Native.
Supported platforms:
- Android
- iOS
First, add this library to your React Native app using NPM or Yarn, and run pod install as necessary to integrate it with your app's native code.
Here is a simple usage example:
import { what } from 'react-native-monero-lwsf'
// ???This library relies on a large amount of native C++ code from other repos. To integrate this code, you must run the following script before publishing this library to NPM:
npm run build-nativeThis script does the following tasks:
- Download third-party source code.
- Compile shared libraries for Android.
- Compile an iOS universal static library and put it into an XCFramework.
The build-native script is also the place to make edits when upgrading any of the third-party dependencies. The react-native-monero-lwsf repo doesn't include these third-party C++ sources, since they are enormous.
For this to work, you need:
- A recent Android SDK, installed at
$ANDROID_HOME - Xcode command-line tools
cmake, provided bybrew install cmakellvm-objcopy, provided bybrew install llvm