Skip to content

Commit 2d46a3a

Browse files
authored
fix button props typing for floating button (#1032)
1 parent bcd9c9f commit 2d46a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/floatingButton/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {PureComponent} from 'react';
1+
import React, {PropsWithChildren, PureComponent} from 'react';
22
import {StyleSheet} from 'react-native';
33
import {View as AnimatableView} from 'react-native-animatable';
44
import {Constants} from '../../helpers';
@@ -16,11 +16,11 @@ export interface FloatingButtonProps {
1616
/**
1717
* Button element (all Button's component's props)
1818
*/
19-
button?: ButtonPropTypes;
19+
button?: PropsWithChildren<ButtonPropTypes>;
2020
/**
2121
* Secondary button element (all Button's component's props)
2222
*/
23-
secondaryButton?: ButtonPropTypes;
23+
secondaryButton?: PropsWithChildren<ButtonPropTypes>;
2424
/**
2525
* The bottom margin of the button, or secondary button if passed
2626
*/

0 commit comments

Comments
 (0)