UNPKG

@wordpress/components

Version:
31 lines (27 loc) 771 B
import { createElement } from "@wordpress/element"; /** * External dependencies */ import { View, TouchableWithoutFeedback } from 'react-native'; /** * Internal dependencies */ import styles from './styles.scss'; // Action button component is used by both Back and Apply Button componenets. function ActionButton(_ref) { let { onPress, accessibilityLabel, accessibilityHint, children } = _ref; return createElement(TouchableWithoutFeedback, { onPress: onPress, accessibilityRole: 'button', accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint }, createElement(View, { style: styles['action-button'] }, children)); } export default ActionButton; //# sourceMappingURL=action-button.native.js.map