// Metro module 9243 (f9244). import { useMemo } from "react"; import { StyleSheet } from "react-native"; export default function useFastestListComputedStyles({ style }) { return useMemo(() => { let r14; let r7 = style; if (style != null) { if (style == null) { r7 = { flex: 1 }; } r14 = [r7]; } else { r14 = { flex: 1 }; } const style2 = StyleSheet.flatten(r14); let r15 = style2?.marginStart; if (r15 == null) { r15 = style2?.marginLeft; } if (r15 == null) { r15 = style2?.marginHorizontal; } if (r15 == null) { r15 = style2?.margin; } if (r15 == null) { r15 = 0; } let r23 = style2?.paddingStart; if (r23 == null) { r23 = style2?.paddingLeft; } if (r23 == null) { r23 = style2?.paddingHorizontal; } if (r23 == null) { r23 = style2?.padding; } if (r23 == null) { r23 = 0; } if (typeof r15 === "number" && typeof r23 === "number") { let r31 = style2?.marginEnd; if (r31 == null) { r31 = style2?.marginRight; } if (r31 == null) { r31 = style2?.marginHorizontal; } if (r31 == null) { r31 = style2?.margin; } if (r31 == null) { r31 = 0; } let r39 = style2?.paddingEnd; if (r39 == null) { r39 = style2?.paddingRight; } if (r39 == null) { r39 = style2?.paddingHorizontal; } if (r39 == null) { r39 = style2?.padding; } if (r39 == null) { r39 = 0; } if (typeof r31 === "number" && typeof r39 === "number") { return { style: style2, marginEnd: r31 + r39, marginStart: r15 + r23 }; } throw new Error("FastestList: paddingStart and paddingEnd must be numbers."); } throw new Error("FastestList: marginStart and marginEnd must be numbers."); }, [style]); };