Files
react-native-web/docs/storybook/1-components/Button/examples/PropDisabled.js
2017-06-29 16:15:51 -07:00

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;