decord/source/design/components/Sheet/native/BottomSheetTextInput.native.tsx

53 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 9886
// Function ID: 9887
2026-07-20 16:05:17 +00:00
// Name: BottomSheetTextInput
// Dependencies: [19, 21, 6727, 6725, 9887, 2]
2026-07-20 16:05:17 +00:00
// Exports: BottomSheetTextInput
// Module 9886 (BottomSheetTextInput)
import NativeTextInput from "NativeTextInput" /* 6725 */;
import useBottomSheetKeyboardHandlingDefault from "useBottomSheetKeyboardHandling" /* 6727 */;
import TextInput_TextInputDefault from "TextInput/TextInput" /* 9887 */;
import noop from "module_19" /* 19 */;
2026-07-20 16:05:17 +00:00
require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Sheet/native/BottomSheetTextInput.native.tsx");
2026-07-20 16:05:17 +00:00
export const BottomSheetTextInput = function BottomSheetTextInput(ref) {
2026-07-23 10:11:24 +00:00
ref = ref.ref;
2026-07-20 16:05:17 +00:00
({ onFocus, onBlur } = ref);
2026-07-29 08:29:29 +00:00
ref = undefined;
const merged = Object.assign(ref, Object.assign({ onFocus: 0, onBlur: 0, ref: 0 }));
ref = noop.useRef(null);
({ onFocus: onFocus2, onBlur: onBlur2 } = useBottomSheetKeyboardHandlingDefault({ onFocus, onBlur }));
const tmp3 = useBottomSheetKeyboardHandlingDefault({ onFocus, onBlur });
const keyboardBlurring = NativeTextInput.useKeyboardBlurring(ref);
const obj2 = {
2026-07-20 16:05:17 +00:00
ref(current) {
ref.current = current;
2026-08-04 21:03:28 +00:00
if (typeof ref === "function") {
2026-07-29 08:29:29 +00:00
tmp(current);
} else if (null != tmp) {
tmp.current = current;
2026-07-20 16:05:17 +00:00
}
},
onFocus: onFocus2,
onBlur: onBlur2
};
const merged1 = Object.assign(merged);
return jsx(TextInput_TextInputDefault, {
2026-07-23 10:11:24 +00:00
ref(current) {
ref.current = current;
2026-08-04 21:03:28 +00:00
if (typeof ref === "function") {
2026-07-29 08:29:29 +00:00
tmp(current);
} else if (null != tmp) {
tmp.current = current;
2026-07-23 10:11:24 +00:00
}
},
onFocus: onFocus2,
onBlur: onBlur2
});
2026-07-20 16:05:17 +00:00
};