react-native-simi-comps
Version:
Simple Minimal Components for React Native
10 lines • 643 B
JavaScript
import React from "react";
import TextButton from "./TextButton";
import View from "./View";
export default function FormActions(_a) {
var cancel = _a.cancel, submit = _a.submit, submitText = _a.submitText, _b = _a.submitDisabled, submitDisabled = _b === void 0 ? false : _b;
return (React.createElement(View, { row: true, separate: true, marginVertical: 8 },
React.createElement(TextButton, { onPress: cancel, text: "Cancel", marginRight: 4 }),
React.createElement(TextButton, { type: "primary", onPress: submit, text: submitText, disabled: submitDisabled, marginLeft: 4 })));
}
//# sourceMappingURL=FormActions.js.map