"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PressableUsage = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_native_1 = require("react-native");
const stack_1 = require("@fluentui-react-native/stack");
const text_1 = require("@fluentui-react-native/text");
const styles_1 = require("../Common/styles");
const PressableUsage = () => {
    const _onPress = () => {
        react_native_1.Linking.openURL('https://www.microsoft.com');
    };
    const _onKeyDown = (ev) => {
        if (ev.nativeEvent.key === 'Enter' || ev.nativeEvent.key == 'Space')
            react_native_1.Linking.openURL('https://www.microsoft.com');
    };
    const _onPress2 = () => {
        react_native_1.Alert.alert('Alert', 'Success!');
    };
    const _onPress3 = () => {
        react_native_1.Alert.alert('Alert', 'onAccessibilityTap invoked!');
    };
    const _onKeyDown2 = (ev) => {
        if (ev.nativeEvent.key === 'Enter' || ev.nativeEvent.key == ' ')
            react_native_1.Alert.alert('Alert', 'Success!');
    };
    const handledNativeKeyboardEvents = [{ key: 'Enter' }, { key: 'Space' }];
    return (React.createElement(react_native_1.View, null,
        React.createElement(stack_1.Stack, { style: styles_1.stackStyle, gap: 5 },
            React.createElement(text_1.TextV1, { variant: 'bodyStandard' },
                "To learn more about microsoft, visit this",
                ' ',
                React.createElement(text_1.TextV1, { focusable: true, variant: 'bodyStandard', color: "blue", keyDownEvents: handledNativeKeyboardEvents, onPress: _onPress, onKeyDown: _onKeyDown }, "webpage"),
                ' ',
                "for more details."),
            React.createElement(text_1.TextV1, { variant: 'bodyStandard' },
                "Press",
                ' ',
                React.createElement(text_1.TextV1, { variant: 'bodyStandard', color: "blue", keyDownEvents: handledNativeKeyboardEvents, onPress: _onPress2, onKeyDown: _onKeyDown2, onAccessibilityTap: _onPress3 }, "here"),
                ' ',
                "to view an alert."))));
};
exports.PressableUsage = PressableUsage;
//# sourceMappingURL=PressableUsage.js.map