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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.47 | ISC */
1
+ /*! aport-tools v4.4.48 | ISC */
2
2
  import React, { useContext, useState, createContext, useRef, useEffect, useMemo, useCallback } from 'react';
3
3
  import { StyleSheet, Text as Text$1, Animated, View, TouchableOpacity, Image, TextInput, Modal, Pressable, FlatList, Keyboard, Platform, Alert, ActivityIndicator } from 'react-native';
4
4
  import { ThemeContext } from 'aport-themes';
@@ -1428,7 +1428,6 @@ var Button = function Button(_a) {
1428
1428
  onPress = _a.onPress;
1429
1429
  var theme = useContext(ThemeContext).theme;
1430
1430
  var colors = theme.colors;
1431
- useFormContext().handleSubmit;
1432
1431
  var computedStyles = useMemo(function () {
1433
1432
  return StyleSheet.flatten([styles.button, typeStyles(type, disabled, colors), rounded && {
1434
1433
  borderRadius: borderRadius
@@ -1453,6 +1452,7 @@ var Button = function Button(_a) {
1453
1452
  }();
1454
1453
  var handlePress = function handlePress() {
1455
1454
  if (type === 'submit' && (formContext === null || formContext === void 0 ? void 0 : formContext.handleSubmit)) {
1455
+ console.log("Its submit type");
1456
1456
  formContext.handleSubmit();
1457
1457
  } else if (onPress) {
1458
1458
  onPress();