Skip to content

Commit b2b79d6

Browse files
Merge pull request #18 from synonymdev/npm-publish
NPM publish and updated readme
2 parents a01f8b5 + 48f2c34 commit b2b79d6

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,21 @@ This library hopes to simplify the process of adding Lightning via LND's Neutrin
99
## Getting started
1010

1111
```bash
12-
yarn add react-native-lightning
13-
cd ios && pod install && cd ../
12+
yarn add @synonymdev/react-native-lightning
13+
#or
14+
npm i -s @synonymdev/react-native-lightning
1415
````
1516

16-
#### or build and add from local repo
17-
17+
### iOS installation
1818
```bash
19-
#Clone, install and build project
20-
git clone https://github.com/synonymdev/react-native-lightning.git
21-
cd react-native-lightning
22-
yarn install && yarn build
23-
cd ../
24-
25-
#Add to your app
26-
yarn add ../react-native-lightning #Might need to adjust path if not cloned to same directory as app
27-
28-
# iOS installation
29-
3019
cd ios && pod install && cd ../
20+
````
3121
32-
# Android installation
22+
### Android installation
3323
3424
open `android/app/build.gradle` and add the below line to `dependencies`
3525
36-
`implementation files("../../node_modules/react-native-lightning/android/libs/Lndmobile.aar")`
37-
````
26+
`implementation files("../../node_modules/@synonymdev/react-native-lightning/android/libs/Lndmobile.aar")`
3827
3928
## Running example app
4029
```bash
@@ -57,7 +46,7 @@ import lnd, {
5746
ENetworks,
5847
LndConf,
5948
TCurrentLndState,
60-
} from 'react-native-lightning';
49+
} from '@synonymdev/react-native-lightning';
6150

6251
const lndConf = new LndConf(ENetworks.regtest);
6352
```

android/src/main/java/com/reactnativelightning/ReactNativeLightningModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public void onResponse(byte[] bytes) {
174174
Log.i(TAG, "Wallet ready to be unlocked");
175175
Log.d(TAG, "Wallet ready to be unlocked");
176176
state.setLndRunning(true, getReactApplicationContext());
177-
promise.resolve("unlocked");
177+
promise.resolve("LND started");
178178
}
179179
}
180180
class RPCCallback implements Callback {

package.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
2-
"name": "react-native-lightning",
2+
"name": "@synonymdev/react-native-lightning",
33
"title": "React Native Lightning",
4-
"version": "0.0.18",
4+
"version": "0.0.23",
55
"description": "React Native wrapper for Lndmobile",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
88
"files": [
99
"README.md",
1010
"android",
11-
"index.js",
1211
"ios",
1312
"react-native-lightning.podspec",
1413
"dist"
@@ -38,7 +37,6 @@
3837
"author": "synonymdev",
3938
"license": "MIT",
4039
"licenseFilename": "LICENSE",
41-
"readmeFilename": "README.md",
4240
"peerDependencies": {
4341
"react": "^16.8.1",
4442
"react-native": ">=0.60.0-rc.0 <1.0.x"
@@ -48,7 +46,6 @@
4846
"@types/react-native": "0.62.13",
4947
"@typescript-eslint/eslint-plugin": "3.3.0",
5048
"@typescript-eslint/parser": "3.3.0",
51-
"base64-js": "^1.5.1",
5249
"eslint": "^7.20.0",
5350
"eslint-config-prettier": "6.11.0",
5451
"eslint-config-standard-with-typescript": "18.0.2",
@@ -59,9 +56,18 @@
5956
"eslint-plugin-promise": "4.2.1",
6057
"eslint-plugin-standard": "4.0.1",
6158
"prettier": "^2.2.1",
62-
"protobufjs": "^6.10.2",
6359
"react": "^16.9.0",
6460
"typescript": "^4.1.5"
6561
},
66-
"dependencies": {}
62+
"dependencies": {
63+
"base64-js": "^1.5.1",
64+
"protobufjs": "^6.10.2"
65+
},
66+
"bugs": {
67+
"url": "https://github.com/synonymdev/react-native-lightning/issues"
68+
},
69+
"homepage": "https://github.com/synonymdev/react-native-lightning#readme",
70+
"directories": {
71+
"example": "example"
72+
}
6773
}

0 commit comments

Comments
 (0)