Skip to content

Commit fe64697

Browse files
authored
fix: android modal size (#2784)
1 parent 2c7e95a commit fe64697

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
@@ -895,21 +895,23 @@ const MessageInputWithContext = <
895895
</View>
896896
)}
897897
{showPollCreationDialog ? (
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>
898+
<View style={{ alignItems: 'center', flex: 1, justifyContent: 'center' }}>
899+
<Modal
900+
animationType='slide'
901+
onRequestClose={closePollCreationDialog}
902+
visible={showPollCreationDialog}
903+
>
904+
<GestureHandlerRootView style={{ flex: 1 }}>
905+
<SafeAreaView style={{ backgroundColor: white, flex: 1 }}>
906+
<CreatePoll
907+
closePollCreationDialog={closePollCreationDialog}
908+
CreatePollContent={CreatePollContent}
909+
sendMessage={sendMessage}
910+
/>
911+
</SafeAreaView>
912+
</GestureHandlerRootView>
913+
</Modal>
914+
</View>
913915
) : null}
914916
</>
915917
);

0 commit comments

Comments
 (0)