aport-tools 4.4.6 → 4.4.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.6 | ISC */
1
+ /*! aport-tools v4.4.8 | ISC */
2
2
  import React, { useContext, useState, createContext, useCallback, useMemo } 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';
@@ -210,6 +210,7 @@ var Stepper = function Stepper(_a) {
210
210
  _a.label = 2;
211
211
  case 2:
212
212
  // Proceed to change step
213
+ seterrorBack(false);
213
214
  onPress === null || onPress === void 0 ? void 0 : onPress(stepIndex);
214
215
  return [2 /*return*/];
215
216
  }
@@ -219,7 +220,7 @@ var Stepper = function Stepper(_a) {
219
220
  React.useEffect(function () {
220
221
  Animated.timing(progressAnim, {
221
222
  toValue: currentStep,
222
- duration: 300,
223
+ duration: 500,
223
224
  useNativeDriver: false
224
225
  }).start();
225
226
  }, [currentStep]);
@@ -306,7 +307,7 @@ var Stepper = function Stepper(_a) {
306
307
  }
307
308
  }, /*#__PURE__*/React.createElement(View, {
308
309
  style: [styles$9.step, stepStyle === "square" && styles$9.squareStep, {
309
- backgroundColor: !errorBack ? currentStep >= index ? colors.primary.hex : colors.body.hex : colors.error.hex
310
+ backgroundColor: currentStep >= index ? colors.primary.hex : !errorBack ? colors.body.hex : colors.error.hex
310
311
  }]
311
312
  }, renderStepContent(index)), steps && /*#__PURE__*/React.createElement(Text, {
312
313
  style: styles$9.stepText