Skip to content

Commit 7bdce5d

Browse files
authored
Merge pull request #30 from synonymdev/event-emitter-fix
Event Emitter Fix
2 parents a226f03 + b236fec commit 7bdce5d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

ios/ReactNativeLightning.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ @interface RCT_EXTERN_MODULE(ReactNativeLightning, NSObject)
3838
body: (NSString *)body
3939
)
4040

41-
// Keep: Required for RN built in Event Emitter Calls.
4241
RCT_EXPORT_METHOD(
4342
addListener : (NSString *)eventName
44-
)
43+
) {
44+
// Keep: Required for RN built in Event Emitter Calls.
45+
}
4546

46-
// Keep: Required for RN built in Event Emitter Calls.
4747
RCT_EXPORT_METHOD(
4848
removeListeners : (NSInteger)count
49-
)
49+
) {
50+
// Keep: Required for RN built in Event Emitter Calls.
51+
}
5052
@end
5153

5254
//MARK: Events

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@synonymdev/react-native-lightning",
33
"title": "React Native Lightning",
4-
"version": "0.0.36",
4+
"version": "0.0.37",
55
"description": "React Native wrapper for Lndmobile",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
@@ -63,7 +63,7 @@
6363
"dependencies": {
6464
"base64-js": "^1.5.1",
6565
"protobufjs": "^6.10.2",
66-
"react-native-fs": "^2.18.0",
66+
"react-native-fs": "https://github.com/synonymdev/react-native-fs",
6767
"react-native-zip-archive": "^6.0.3"
6868
},
6969
"bugs": {

yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,10 +1688,9 @@ react-is@^16.8.1:
16881688
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
16891689
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
16901690

1691-
react-native-fs@^2.18.0:
1691+
"react-native-fs@https://github.com/synonymdev/react-native-fs":
16921692
version "2.18.0"
1693-
resolved "https://registry.yarnpkg.com/react-native-fs/-/react-native-fs-2.18.0.tgz#987b99cc90518ef26663a8d60e62104694b41c21"
1694-
integrity sha512-9iQhkUNnN2JNED0in06JwZy88YEVyIGKWz4KLlQYxa5Y2U0U2AZh9FUHtA04oWj+xt2LlHh0LFPCzhmNsAsUDg==
1693+
resolved "https://github.com/synonymdev/react-native-fs#0b1d2eb793319acb8d6864cc6e32ee0ce342afa8"
16951694
dependencies:
16961695
base-64 "^0.1.0"
16971696
utf8 "^3.0.0"

0 commit comments

Comments
 (0)