Skip to content

Commit

Permalink
fix: android modal size
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Nov 14, 2024
1 parent 2c7e95a commit 8942208
Showing 1 changed file with 17 additions and 15 deletions.
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

0 comments on commit 8942208

Please sign in to comment.