Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/BottomTabs.re
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ module Make = (M: {type params;}) => {
"navigation": navigation,
"route": route,
}),
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -199,6 +200,7 @@ module Make = (M: {type params;}) => {
~options: optionsCallback=?,
~initialParams: M.params=?,
~children: renderCallbackProp => React.element,
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -222,6 +224,7 @@ module Make = (M: {type params;}) => {
~_lazy: bool=?,
~tabBar: Js.t(bottomTabBarProps) => React.element=?,
~tabBarOptions: bottomTabBarOptions=?,
~key: string=?,
unit
) =>
navigatorProps;
Expand Down
2 changes: 2 additions & 0 deletions src/Drawer.re
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ module Make = (M: {type params;}) => {
"navigation": navigation,
"route": route(M.params),
}),
~key: string=?,
unit
) =>
screenProps;
Expand Down Expand Up @@ -162,6 +163,7 @@ module Make = (M: {type params;}) => {
~drawerContentOptions: Js.t(contentOptions)=?,
~sceneContainerStyle: ReactNative.Style.t=?,
~style: ReactNative.Style.t=?,
~key: string=?,
unit
) =>
navigatorProps;
Expand Down
3 changes: 3 additions & 0 deletions src/MaterialBottomTabs.re
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ module Make = (M: {type params;}) => {
~options: optionsCallback=?,
~initialParams: M.params=?,
~component: React.component({. "navigation": navigation}),
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -138,6 +139,7 @@ module Make = (M: {type params;}) => {
~options: optionsCallback=?,
~initialParams: M.params=?,
~children: renderCallbackProp => React.element,
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -164,6 +166,7 @@ module Make = (M: {type params;}) => {
~inactiveColor: string=?,
~barStyle: ReactNative.Style.t=?,
//TODO: More? https://github.com/callstack/react-native-paper/blob/bd4296116d841ed355f3dbebb40cfbc3b87a79ff/src/components/BottomNavigation.tsx#L132-L196
~key: string=?,
unit
) =>
navigatorProps;
Expand Down
3 changes: 3 additions & 0 deletions src/MaterialTopTabs.re
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ module Make = (M: {type params;}) => {
~options: optionsCallback=?,
~initialParams: M.params=?,
~component: React.component({. "navigation": navigation}),
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -193,6 +194,7 @@ module Make = (M: {type params;}) => {
~options: optionsCallback=?,
~initialParams: M.params=?,
~children: renderCallbackProp => React.element,
~key: string=?,
unit
) =>
screenProps(M.params);
Expand Down Expand Up @@ -230,6 +232,7 @@ module Make = (M: {type params;}) => {
~swipeVelocityImpact: float=?,
~sceneContainerStyle: ReactNative.Style.t=?,
~style: ReactNative.Style.t=?,
~key: string=?,
unit
) =>
navigatorProps;
Expand Down
1 change: 1 addition & 0 deletions src/Native.re
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module NavigationContainer = {
[@bs.module "@react-navigation/native"] [@react.component]
external make:
(
~ref: ReactNative.NativeElement.ref=?,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one seems unecessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~initialState: state=?,
~onStateChange: navigationState=?,
~children: React.element
Expand Down
3 changes: 3 additions & 0 deletions src/Stack.re
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ module Make = (M: {type params;}) => {
~options: optionsCallback=?,
~initialParams: M.params=?,
~children: renderCallbackProp => React.element,
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -323,6 +324,7 @@ module Make = (M: {type params;}) => {
"navigation": navigation,
"route": route,
}),
~key: string=?,
unit
) =>
screenProps(M.params);
Expand All @@ -340,6 +342,7 @@ module Make = (M: {type params;}) => {
~headerMode: [@bs.string] [ | `float | `screen | `none]=?,
~keyboardHandlingEnabled: bool=?,
~children: React.element,
~key: string=?,
unit
) =>
navigatorProps;
Expand Down