mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
14 lines
314 B
JavaScript
14 lines
314 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Button } from 'react-native';
|
|
|
|
const onPress = () => {
|
|
console.error('Disabled button should not trigger onPress!');
|
|
};
|
|
const ButtonDisabledExample = () => <Button disabled onPress={onPress} title="Disabled button" />;
|
|
|
|
export default ButtonDisabledExample;
|