Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/core/src/components/Portal/PortalHost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ export default class PortalHost extends React.Component<Props> {
const styles = StyleSheet.create({
container: {
flex: 1,
pointerEvents: "none",
pointerEvents: "box-none",
Comment on lines 138 to +139
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

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}>
Suggested change
flex: 1,
pointerEvents: "none",
pointerEvents: "box-none",
flex: 1,

},
});
2 changes: 1 addition & 1 deletion packages/core/src/components/Portal/PortalManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class PortalManager extends React.PureComponent<object, State> {
collapsable={
false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */
}
style={[StyleSheet.absoluteFill, { pointerEvents: "none" }]}
style={[StyleSheet.absoluteFill, { pointerEvents: "box-none" }]}
>
{children}
</View>
Expand Down