Fix the portal host issue#1035
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the pointerEvents value from "none" to "box-none" in the stylesheet of PortalHost.tsx. However, as noted in the review, pointerEvents is a component prop of View rather than a valid style property in React Native. It should be removed from the stylesheet and applied directly as a prop to the View component to avoid TypeScript compilation errors and ensure correct behavior on native platforms.
| flex: 1, | ||
| pointerEvents: "none", | ||
| pointerEvents: "box-none", |
There was a problem hiding this comment.
In React Native, pointerEvents is a component prop of View (i.e., <View pointerEvents="box-none">), not a style property. Defining it inside StyleSheet.create will not work on native platforms and will cause TypeScript compilation errors because pointerEvents is not a valid property of ViewStyle.
Please remove it from the stylesheet and apply it as a prop to the <View> component at line 127:
<View pointerEvents="box-none" style={styles.container} collapsable={false}>| flex: 1, | |
| pointerEvents: "none", | |
| pointerEvents: "box-none", | |
| flex: 1, |
No description provided.