Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: android modal size #2784

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions package/src/components/MessageInput/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -895,21 +895,23 @@ const MessageInputWithContext = <
</View>
)}
{showPollCreationDialog ? (
<Modal
animationType='slide'
onRequestClose={closePollCreationDialog}
visible={showPollCreationDialog}
>
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaView style={{ backgroundColor: white, flex: 1 }}>
<CreatePoll
closePollCreationDialog={closePollCreationDialog}
CreatePollContent={CreatePollContent}
sendMessage={sendMessage}
/>
</SafeAreaView>
</GestureHandlerRootView>
</Modal>
<View style={{ alignItems: 'center', flex: 1, justifyContent: 'center' }}>
<Modal
animationType='slide'
onRequestClose={closePollCreationDialog}
visible={showPollCreationDialog}
>
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaView style={{ backgroundColor: white, flex: 1 }}>
<CreatePoll
closePollCreationDialog={closePollCreationDialog}
CreatePollContent={CreatePollContent}
sendMessage={sendMessage}
/>
</SafeAreaView>
</GestureHandlerRootView>
</Modal>
</View>
) : null}
</>
);
Expand Down
Loading