import * as React from 'react';
import { Alert, Linking, View } from 'react-native';
import { Stack } from '@fluentui-react-native/stack';
import { TextV1 as Text } from '@fluentui-react-native/text';
import { stackStyle } from '../Common/styles';
export const PressableUsage = () => {
    const _onPress = () => {
        Linking.openURL('https://www.microsoft.com');
    };
    const _onKeyDown = (ev) => {
        if (ev.nativeEvent.key === 'Enter' || ev.nativeEvent.key == 'Space')
            Linking.openURL('https://www.microsoft.com');
    };
    const _onPress2 = () => {
        Alert.alert('Alert', 'Success!');
    };
    const _onPress3 = () => {
        Alert.alert('Alert', 'onAccessibilityTap invoked!');
    };
    const _onKeyDown2 = (ev) => {
        if (ev.nativeEvent.key === 'Enter' || ev.nativeEvent.key == ' ')
            Alert.alert('Alert', 'Success!');
    };
    const handledNativeKeyboardEvents = [{ key: 'Enter' }, { key: 'Space' }];
    return (React.createElement(View, null,
        React.createElement(Stack, { style: stackStyle, gap: 5 },
            React.createElement(Text, { variant: 'bodyStandard' },
                "To learn more about microsoft, visit this",
                ' ',
                React.createElement(Text, { focusable: true, variant: 'bodyStandard', color: "blue", keyDownEvents: handledNativeKeyboardEvents, onPress: _onPress, onKeyDown: _onKeyDown }, "webpage"),
                ' ',
                "for more details."),
            React.createElement(Text, { variant: 'bodyStandard' },
                "Press",
                ' ',
                React.createElement(Text, { variant: 'bodyStandard', color: "blue", keyDownEvents: handledNativeKeyboardEvents, onPress: _onPress2, onKeyDown: _onKeyDown2, onAccessibilityTap: _onPress3 }, "here"),
                ' ',
                "to view an alert."))));
};
//# sourceMappingURL=PressableUsage.js.map