Skip to content

Commit 11ec6f5

Browse files
fix: Add children props to Modal binding
1 parent 082a1ed commit 11ec6f5

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/Paper__Appbar.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ module BackAction = {
6363
(~accessibilityLabel: string=?, ~onPress: 'a => unit, ~color: string=?) =>
6464
React.element =
6565
"BackAction";
66-
};
66+
};

src/Paper__Modal.re

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[@bs.module "react-native-paper"] [@react.component]
22
external make:
3-
(~dismissable: bool=?, ~visible: bool=?, ~onDismiss: unit => unit=?) =>
3+
(
4+
~dismissable: bool=?,
5+
~visible: bool=?,
6+
~onDismiss: unit => unit=?,
7+
~children: React.element
8+
) =>
49
React.element =
5-
"Modal";
10+
"Modal";

0 commit comments

Comments
 (0)