@lodev09/react-native-true-sheet 3.6.6 → 3.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -154,13 +154,16 @@ class TrueSheetView(private val reactContext: ThemedReactContext) :
|
|
|
154
154
|
|
|
155
155
|
fun onDropInstance() {
|
|
156
156
|
reactContext.removeLifecycleEventListener(this)
|
|
157
|
-
TrueSheetModule.unregisterView(id)
|
|
158
|
-
TrueSheetStackManager.removeSheet(this)
|
|
159
157
|
|
|
160
158
|
if (viewController.isPresented) {
|
|
161
159
|
viewController.dismiss(animated = false)
|
|
162
160
|
}
|
|
161
|
+
|
|
162
|
+
TrueSheetModule.unregisterView(id)
|
|
163
|
+
TrueSheetStackManager.removeSheet(this)
|
|
164
|
+
|
|
163
165
|
viewController.delegate = null
|
|
166
|
+
didInitiallyPresent = false
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
/**
|
package/ios/TrueSheetView.mm
CHANGED
|
@@ -258,13 +258,14 @@ using namespace facebook::react;
|
|
|
258
258
|
- (void)prepareForRecycle {
|
|
259
259
|
[super prepareForRecycle];
|
|
260
260
|
|
|
261
|
-
_lastStateSize = CGSizeZero;
|
|
262
|
-
|
|
263
261
|
if (_controller && _controller.presentingViewController) {
|
|
264
262
|
[_controller dismissViewControllerAnimated:YES completion:nil];
|
|
265
263
|
}
|
|
266
264
|
|
|
267
265
|
[TrueSheetModule unregisterViewWithTag:@(self.tag)];
|
|
266
|
+
|
|
267
|
+
_lastStateSize = CGSizeZero;
|
|
268
|
+
_didInitiallyPresent = NO;
|
|
268
269
|
}
|
|
269
270
|
|
|
270
271
|
#pragma mark - Child Component Mounting
|
package/package.json
CHANGED