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 8875dbd commit d1c9755
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 @@ -894,21 +894,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 d1c9755

Please sign in to comment.