// Metro module 5344 (f5345). import _objectWithoutProperties from "./_objectWithoutProperties"; import { forwardRef, useRef, cloneElement } from "react"; import * as _Module17 from "react-native"; import { FlatList } from "react-native"; import createNativeWrapper from "./createNativeWrapper"; import { toArray } from "./deepEqual"; import { nativeViewProps } from "./Module5308"; const _excluded = ["refreshControl", "waitFor"]; const _excluded2 = ["waitFor", "refreshControl"]; const { ScrollView, Switch, TextInput, DrawerLayoutAndroid, RefreshControl } = _Module17; const nativeWrapper = createNativeWrapper(RefreshControl, { disallowInterruption: true, shouldCancelWhenOutside: false }); let Component = createNativeWrapper(ScrollView, { disallowInterruption: true, shouldCancelWhenOutside: false }); let Component2 = forwardRef((a0, a1) => { const ref2 = useRef(null); const refreshControl = a0.refreshControl; let waitFor2 = a0.waitFor; const rest = _objectWithoutProperties(a0, _excluded); if (waitFor2 == null) { waitFor2 = []; } return ; }); const nativeWrapper2 = createNativeWrapper(Switch, { shouldCancelWhenOutside: false, shouldActivateOnStart: true, disallowInterruption: true }); const nativeWrapper3 = createNativeWrapper(TextInput); const nativeWrapper4 = createNativeWrapper(DrawerLayoutAndroid, { disallowInterruption: true }); const r56 = forwardRef((a0, a1) => { const ref = useRef(null); const { waitFor, refreshControl, ...rest } = a0; const props = {}; const r7 = {}; let c14814_2 = r7; for (const item of Object.entries(rest)) { const [r14, r44] = item; const r51 = nativeViewProps.includes(r14); if (r51) { r7[r14] = r44; } else { props[r14] = r44; } } return { let r21 = waitFor; if (waitFor == null) { r21 = []; } return ; }} refreshControl={refreshControl ? cloneElement(refreshControl, { ref }) : void 0} />; }); export { nativeWrapper as RefreshControl }; export { Component2 as ScrollView }; export { nativeWrapper2 as Switch }; export { nativeWrapper3 as TextInput }; export { nativeWrapper4 as DrawerLayoutAndroid }; export { r56 as FlatList };