Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
53 lines
1.8 KiB
JavaScript
53 lines
1.8 KiB
JavaScript
// Module ID: 1862
|
|
// Function ID: 1863
|
|
// Dependencies: [19, 21, 1855, 1856, 1861, 1828, 1854]
|
|
// Exports: default
|
|
|
|
// Module 1862
|
|
import _mod1828 from "module_1828" /* 1828 */;
|
|
import disabledDefault from "disabled" /* 1855 */;
|
|
import _modDef1856 from "module_1856" /* 1856 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
fn(19).useCallback;
|
|
const jsx = fn(21).jsx;
|
|
|
|
export default function _default(icon) {
|
|
({ children, onPress } = icon);
|
|
({ disabled, button } = icon);
|
|
({ rippleRadius, style } = icon);
|
|
if (button === undefined) {
|
|
button = disabledDefault;
|
|
}
|
|
icon = icon.icon;
|
|
if (icon === undefined) {
|
|
icon = _modDef1856;
|
|
}
|
|
const toolbarContext = onPress(1861).useToolbarContext();
|
|
const theme = toolbarContext.theme;
|
|
if (disabled == null) {
|
|
disabled = toolbarContext.isNextDisabled;
|
|
}
|
|
const items = [onPress];
|
|
const obj2 = { accessibilityHint: "Moves focus to the next field", accessibilityLabel: "Next", disabled, rippleRadius, style, testID: null, theme: null, onPress: null, children: null };
|
|
const obj = onPress(1861);
|
|
const tmp5 = onPress;
|
|
obj2.testID = tmp5(1854).TEST_ID_KEYBOARD_TOOLBAR_NEXT;
|
|
obj2.theme = theme;
|
|
obj2.onPress = useCallback((isDefaultPrevented) => {
|
|
if (onPress != null) {
|
|
tmp(isDefaultPrevented);
|
|
}
|
|
if (!isDefaultPrevented.isDefaultPrevented()) {
|
|
const KeyboardController = _mod1828.KeyboardController;
|
|
KeyboardController.setFocusTo("next");
|
|
}
|
|
}, items);
|
|
if (children == null) {
|
|
const obj3 = { disabled, theme, type: "next" };
|
|
children = tmp9(icon, obj3);
|
|
}
|
|
obj2.children = children;
|
|
return <button accessibilityHint="Moves focus to the next field" accessibilityLabel="Next" disabled={disabled} rippleRadius={rippleRadius} style={style} testID={null} theme={null} onPress={null}>{null}</button>;
|
|
};
|