concentric-sheet 0.0.2 → 0.0.3

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.
@@ -6,5 +6,5 @@ export interface NativeSheetModalProps extends Pick<RNModalProps, 'children' | '
6
6
  }
7
7
  export declare function applyPresentedModalConfig(config: PresentedModalConfig): boolean;
8
8
  export declare function dismissPresentedNativeModal(animated?: boolean): boolean;
9
- export declare function Modal(props: NativeSheetModalProps): React.JSX.Element | null;
9
+ export declare function Modal(props: NativeSheetModalProps): React.JSX.Element;
10
10
  export default Modal;
@@ -235,9 +235,6 @@ export function Modal(props) {
235
235
  clearRetryTimeout();
236
236
  onDismissProp?.();
237
237
  }, [clearRetryTimeout, onDismissProp]);
238
- if (Platform.OS === 'ios' && !visible) {
239
- return null;
240
- }
241
238
  return (React.createElement(RNModal, { visible: visible, animationType: animationType ?? 'slide', presentationStyle: presentationStyle ?? 'pageSheet', onRequestClose: onRequestClose, onDismiss: onDismiss, onShow: onShow, allowSwipeDismissal: resolvedAllowSwipeDismissal }, children));
242
239
  }
243
240
  export default Modal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "concentric-sheet",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "n iOS sheet view controller that supports concentric corners + glass.",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
@@ -321,10 +321,6 @@ export function Modal(props: NativeSheetModalProps) {
321
321
  onDismissProp?.()
322
322
  }, [clearRetryTimeout, onDismissProp])
323
323
 
324
- if (Platform.OS === 'ios' && !visible) {
325
- return null
326
- }
327
-
328
324
  return (
329
325
  <RNModal
330
326
  visible={visible}