Skip to content

Commit e61b80d

Browse files
authoredDec 16, 2020
- Fixed deprecation of bridge reload (#149)
- Updated example
1 parent 2ce4440 commit e61b80d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
 

‎Example/ios/Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ PODS:
182182
- React-cxxreact (= 0.61.5)
183183
- React-jsi (= 0.61.5)
184184
- React-jsinspector (0.61.5)
185-
- react-native-restart (0.0.15):
186-
- React
185+
- react-native-restart (0.0.17):
186+
- React-Core
187187
- React-RCTActionSheet (0.61.5):
188188
- React-Core/RCTActionSheetHeaders (= 0.61.5)
189189
- React-RCTAnimation (0.61.5):
@@ -326,7 +326,7 @@ SPEC CHECKSUMS:
326326
React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7
327327
React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386
328328
React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0
329-
react-native-restart: fff228304625f55de2ebd4de43938110f4c888ed
329+
react-native-restart: 5339c6a33b947c39bcf5877fd2a9352d59d481b9
330330
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
331331
React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
332332
React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72

‎ios/Restart.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#import <React/RCTBridgeModule.h>
22
#import <React/RCTRootView.h>
3+
#import <React/RCTReloadCommand.h>
34

45
@interface Restart : NSObject <RCTBridgeModule>
56

‎ios/Restart.m

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
@implementation Restart
44

5-
@synthesize bridge = _bridge;
6-
75
RCT_EXPORT_MODULE(RNRestart)
86

97
- (void)loadBundle
108
{
11-
[_bridge reload];
9+
RCTTriggerReloadCommandListeners();
1210
}
1311

1412
RCT_EXPORT_METHOD(Restart) {

0 commit comments

Comments
 (0)
Please sign in to comment.