Files
discord-decomp/_bundle/_default_1841.jsx
T
2026-11-01 12:12:55 +02:00

37 lines
935 B
React

// Metro module 1841 (f1842).
import { useMemo } from "react";
import { View, StyleSheet, Platform } from "react-native";
import { useWindowDimensions } from "./useResizeMode";
import { RCTOverKeyboardView } from "./Module1596";
Platform;
const styles = StyleSheet.create({
absolute: {
position: "absolute"
},
stretch: {
top: 0,
bottom: 0,
left: 0,
right: 0
}
});
export default (a0) => {
const children = a0.children;
let visible = a0.visible;
const windowDimensions = useWindowDimensions();
const { height, width } = windowDimensions;
const memo = useMemo(() => [styles.absolute, void 0, styles.stretch], [useMemo(() => ({
height,
width
}), [height, width])]);
const props = {
visible,
children: null
};
if (visible) {
visible = children;
}
props.children = <View collapsable={false} style={memo}>{visible}</View>;
return <RCTOverKeyboardView {...props} />;
};