UNPKG

@activatortube/react-native-form

Version:
38 lines (37 loc) 1.21 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); /** * 提交按钮 * 2019-09-07 02:04. * * @author WheelerLee https://github.com/WheelerLee * @copyright 2019 */ import React from 'react'; import { Component } from 'react'; import { TouchableOpacity } from 'react-native'; var Submit = /** @class */ (function (_super) { __extends(Submit, _super); function Submit(props) { return _super.call(this, props) || this; } Submit.prototype.isForm = function () { return true; }; Submit.prototype.render = function () { return (<TouchableOpacity {...this.props}/>); }; return Submit; }(Component)); export default Submit;