Skip to content

Commit 81507fb

Browse files
authored
Merge pull request #2783 from GetStream/fix/android-poll-creation-modal-size
fix: android poll creation modal size
2 parents 8875dbd + d1c9755 commit 81507fb

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

package/src/components/MessageInput/MessageInput.tsx

+17-15
Original file line numberDiff line numberDiff line change
@@ -894,21 +894,23 @@ const MessageInputWithContext = <
894894
</View>
895895
)}
896896
{showPollCreationDialog ? (
897-
<Modal
898-
animationType='slide'
899-
onRequestClose={closePollCreationDialog}
900-
visible={showPollCreationDialog}
901-
>
902-
<GestureHandlerRootView style={{ flex: 1 }}>
903-
<SafeAreaView style={{ backgroundColor: white, flex: 1 }}>
904-
<CreatePoll
905-
closePollCreationDialog={closePollCreationDialog}
906-
CreatePollContent={CreatePollContent}
907-
sendMessage={sendMessage}
908-
/>
909-
</SafeAreaView>
910-
</GestureHandlerRootView>
911-
</Modal>
897+
<View style={{ alignItems: 'center', flex: 1, justifyContent: 'center' }}>
898+
<Modal
899+
animationType='slide'
900+
onRequestClose={closePollCreationDialog}
901+
visible={showPollCreationDialog}
902+
>
903+
<GestureHandlerRootView style={{ flex: 1 }}>
904+
<SafeAreaView style={{ backgroundColor: white, flex: 1 }}>
905+
<CreatePoll
906+
closePollCreationDialog={closePollCreationDialog}
907+
CreatePollContent={CreatePollContent}
908+
sendMessage={sendMessage}
909+
/>
910+
</SafeAreaView>
911+
</GestureHandlerRootView>
912+
</Modal>
913+
</View>
912914
) : null}
913915
</>
914916
);

0 commit comments

Comments
 (0)