We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0df53e3 commit c67f0e7Copy full SHA for c67f0e7
src/Container.tsx
@@ -62,14 +62,14 @@ const DialogContainer: React.FC<DialogContainerProps> = (props) => {
62
const { styles } = useTheme(buildStyles);
63
React.Children.forEach(children, (child) => {
64
if (typeof child === "object" && child !== null && "type" in child) {
65
- switch (child.type) {
66
- case DialogTitle:
+ switch (child.type.displayName) {
+ case DialogTitle.displayName:
67
titleChildrens.push(child as TitleElement);
68
return;
69
- case DialogDescription:
+ case DialogDescription.displayName:
70
descriptionChildrens.push(child as DescriptionElement);
71
72
- case DialogButton:
+ case DialogButton.displayName:
73
if (Platform.OS === "ios" && buttonChildrens.length > 0) {
74
buttonChildrens.push(
75
<View
0 commit comments