Skip to content

Commit 2ee4fb9

Browse files
committed
Fix default value
1 parent e6cfffa commit 2ee4fb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

android/src/paper/java/com/facebook/react/viewmanagers/RNSScreenManagerDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void setProperty(T view, String propName, @Nullable Object value) {
5151
mViewManager.setSheetElevation(view, value == null ? 24 : ((Double) value).intValue());
5252
break;
5353
case "sheetShouldOverflowTopInset":
54-
mViewManager.setSheetShouldOverflowTopInset(view, value == null ? true : (boolean) value);
54+
mViewManager.setSheetShouldOverflowTopInset(view, value == null ? false : (boolean) value);
5555
break;
5656
case "customAnimationOnSwipe":
5757
mViewManager.setCustomAnimationOnSwipe(view, value == null ? false : (boolean) value);

src/fabric/ModalScreenNativeComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface NativeProps extends ViewProps {
8989
sheetExpandsWhenScrolledToEdge?: WithDefault<boolean, false>;
9090
sheetInitialDetent?: WithDefault<Int32, 0>;
9191
sheetElevation?: WithDefault<Int32, 24>;
92-
sheetShouldOverflowTopInset?: WithDefault<boolean, true>;
92+
sheetShouldOverflowTopInset?: WithDefault<boolean, false>;
9393
customAnimationOnSwipe?: boolean;
9494
fullScreenSwipeEnabled?: WithDefault<OptionalBoolean, 'undefined'>;
9595
fullScreenSwipeShadowEnabled?: WithDefault<boolean, true>;

src/fabric/ScreenNativeComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export interface NativeProps extends ViewProps {
9191
sheetExpandsWhenScrolledToEdge?: WithDefault<boolean, false>;
9292
sheetInitialDetent?: WithDefault<Int32, 0>;
9393
sheetElevation?: WithDefault<Int32, 24>;
94-
sheetShouldOverflowTopInset?: WithDefault<boolean, true>;
94+
sheetShouldOverflowTopInset?: WithDefault<boolean, false>;
9595
customAnimationOnSwipe?: boolean;
9696
fullScreenSwipeEnabled?: WithDefault<OptionalBoolean, 'undefined'>;
9797
fullScreenSwipeShadowEnabled?: WithDefault<boolean, true>;

0 commit comments

Comments
 (0)