aport-tools 4.4.47 → 4.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! aport-tools v4.4.
|
1
|
+
/*! aport-tools v4.4.48 | ISC */
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
var React = require('react');
|
@@ -1449,7 +1449,6 @@ var Button = function Button(_a) {
|
|
1449
1449
|
onPress = _a.onPress;
|
1450
1450
|
var theme = React.useContext(aportThemes.ThemeContext).theme;
|
1451
1451
|
var colors = theme.colors;
|
1452
|
-
useFormContext().handleSubmit;
|
1453
1452
|
var computedStyles = React.useMemo(function () {
|
1454
1453
|
return reactNative.StyleSheet.flatten([styles.button, typeStyles(type, disabled, colors), rounded && {
|
1455
1454
|
borderRadius: borderRadius
|
@@ -1474,6 +1473,7 @@ var Button = function Button(_a) {
|
|
1474
1473
|
}();
|
1475
1474
|
var handlePress = function handlePress() {
|
1476
1475
|
if (type === 'submit' && (formContext === null || formContext === void 0 ? void 0 : formContext.handleSubmit)) {
|
1476
|
+
console.log("Its submit type");
|
1477
1477
|
formContext.handleSubmit();
|
1478
1478
|
} else if (onPress) {
|
1479
1479
|
onPress();
|