Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Wrap Modal in a View
  • Loading branch information
antonis committed Jan 27, 2025
commit 011fea7fafab764ac49e240a7c21cbffb541da97
20 changes: 12 additions & 8 deletions packages/core/src/js/feedback/FeedbackFormManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,22 @@ class FeedbackFormProvider extends React.Component<FeedbackFormProviderProps> {
public render(): React.ReactNode {
const { isVisible } = this.state;

// Wrapping the `Modal` component in a `View` component is necessary to avoid
// issues like https://github.com/software-mansion/react-native-reanimated/issues/6035
return (
<>
{this.props.children}
{isVisible && (
<Modal visible={isVisible} transparent animationType="slide">
<View style={styles.modalBackground}>
<FeedbackForm
onFormClose={this._handleClose}
onFormSubmitted={this._handleClose}
/>
</View>
</Modal>
<View>
<Modal visible={isVisible} transparent animationType="slide">
<View style={styles.modalBackground}>
<FeedbackForm
onFormClose={this._handleClose}
onFormSubmitted={this._handleClose}
/>
</View>
</Modal>
</View>
)}
</>
);
Expand Down
Loading