Skip to content

Commit a1dc675

Browse files
committed
update SafeAreaView edges prop
1 parent f2c6ed3 commit a1dc675

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/ReactNativeSafeAreaContext.res

+12-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,21 @@ module SafeAreaView = {
5858
open ReactNative
5959
include NativeElement
6060

61+
type mode = [#padding | #margin]
62+
63+
type edgeMode = [#off | #additive | #maximum]
64+
type edges = {
65+
top?: edgeMode,
66+
bottom?: edgeMode,
67+
left?: edgeMode,
68+
right?: edgeMode,
69+
}
70+
6171
type props = {
6272
ref?: ref,
6373
...View.viewProps,
64-
edges?: array<string>,
65-
mode?: [#padding | #margin],
74+
mode?: mode,
75+
edges?: edges,
6676
}
6777

6878
@module("react-native")

0 commit comments

Comments
 (0)