react-native-dialog: Make container's modal props optional

The tests use them in a way that indicates they are not required, so I
added Partial around reactNativeModal.ModalProps.

This probably resulted from a recent update to react-native-modal.
This commit is contained in:
Nathan Shively-Sanders
2019-11-07 14:00:59 -08:00
parent a4560c4eb2
commit 49a03a7294

View File

@@ -61,7 +61,7 @@ interface DescriptionProps {
children: string;
}
type reactNativeModalContainerProps = Pick<reactNativeModal.ModalProps, Exclude<keyof reactNativeModal.ModalProps, "isVisible">>;
type reactNativeModalContainerProps = Partial<Pick<reactNativeModal.ModalProps, Exclude<keyof reactNativeModal.ModalProps, "isVisible">>>;
export namespace Dialog {
class Button extends PureComponent<