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