This library hopes to simplify the process of adding Lightning via LDK to any React-Native app.
yarn add @synonymdev/react-native-ldk
#or
npm i -S @synonymdev/react-native-ldk
cd ios && pod install && cd ../
- Add the following line to
dependencies
in/android/app/build.gradle
dependencies {
...
implementation files("../../node_modules/@synonymdev/react-native-ldk/android/libs/LDK-release.aar")
}
- Ensure
minSdkVersion
is set to at least24
in/android/build.gradle
#Build dist files
git clone https://github.com/synonymdev/react-native-ldk.git
cd react-native-ldk/lib/ && yarn install && yarn build && cd ../
cd example/ && yarn install && yarn rn-setup
yarn ios
#or
yarn android
- It is important to not mix and match account names and seeds when starting LDK. Doing so can result in a corrupt save.
- Use latest LDK-release.aar from ldk-garbagecollected and place in
lib/android/libs
. - Use latest LDKFramework.xcframework from ldk-swift and place in lib/ios.
- To get
pod install
working you might have to open theLDKFramework.xcframework
directory, delete non ios frameworks and remove all references to deleted frameworks insideLDKFramework.xcframework/Info.plist
.
- To get
- Update Swift and Kotlin code if there are any breaking changes.