File tree 3 files changed +8
-14
lines changed
3 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -567,18 +567,16 @@ - (void)uiManagerDidPerformMounting:(__unused RCTUIManager *)manager
567
567
}
568
568
}
569
569
570
- - (BOOL )start
570
+ - (void )start
571
571
{
572
572
// Does nothing.
573
573
// The Start&Stop feature is not implemented for regular Surface yet.
574
- return YES ;
575
574
}
576
575
577
- - (BOOL )stop
576
+ - (void )stop
578
577
{
579
578
// Does nothing.
580
579
// The Start&Stop feature is not implemented for regular Surface yet.
581
- return YES ;
582
580
}
583
581
584
582
#pragma mark - Mounting/Unmounting of React components
Original file line number Diff line number Diff line change @@ -68,13 +68,12 @@ NS_ASSUME_NONNULL_BEGIN
68
68
@property (atomic , assign , readonly ) CGSize intrinsicSize;
69
69
70
70
#pragma mark - Start & Stop
71
-
72
71
/* *
73
72
* Starts or stops the Surface.
74
73
* Those methods are a no-op for regular RCTSurface (for now), but all call sites must call them appropriately.
75
74
*/
76
- - (BOOL )start ;
77
- - (BOOL )stop ;
75
+ - (void )start ;
76
+ - (void )stop ;
78
77
79
78
@end
80
79
Original file line number Diff line number Diff line change @@ -89,12 +89,12 @@ - (void)dealloc
89
89
90
90
#pragma mark - Life-cycle management
91
91
92
- - (BOOL )start
92
+ - (void )start
93
93
{
94
94
std::lock_guard<std::mutex> lock (_surfaceMutex);
95
95
96
96
if (_surfaceHandler->getStatus () != SurfaceHandler::Status::Registered) {
97
- return NO ;
97
+ return ;
98
98
}
99
99
100
100
// We need to register a root view component here synchronously because right after
@@ -108,15 +108,14 @@ - (BOOL)start
108
108
[self _propagateStageChange ];
109
109
110
110
[_surfacePresenter setupAnimationDriverWithSurfaceHandler: *_surfaceHandler];
111
- return YES ;
112
111
}
113
112
114
- - (BOOL )stop
113
+ - (void )stop
115
114
{
116
115
std::lock_guard<std::mutex> lock (_surfaceMutex);
117
116
118
117
if (_surfaceHandler->getStatus () != SurfaceHandler::Status::Running) {
119
- return NO ;
118
+ return ;
120
119
}
121
120
122
121
_surfaceHandler->stop ();
@@ -126,8 +125,6 @@ - (BOOL)stop
126
125
[self ->_surfacePresenter.mountingManager detachSurfaceFromView: self .view
127
126
surfaceId: self ->_surfaceHandler->getSurfaceId ()];
128
127
});
129
-
130
- return YES ;
131
128
}
132
129
133
130
#pragma mark - Immutable Properties (no need to enforce synchronization)
You can’t perform that action at this time.
0 commit comments