aport-tools 4.4.45 → 4.4.46

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.
@@ -11,7 +11,7 @@ interface InputProps extends TextInputProps {
11
11
  /**
12
12
  * Optional first value if you want to set values with fetch or dont have empty inputs.
13
13
  */
14
- firstValue?: string;
14
+ firstValue?: string | number;
15
15
  /**
16
16
  * The text label displayed above the input field.
17
17
  */
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.45 | ISC */
1
+ /*! aport-tools v4.4.46 | 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';
@@ -569,6 +569,7 @@ var Input = function Input(_a) {
569
569
  if (isFirstRender.current) {
570
570
  isFirstRender.current = false;
571
571
  if (firstValue !== undefined) {
572
+ firstValue = firstValue.toString();
572
573
  setInternalValue(firstValue);
573
574
  setFormValue(name, firstValue, firstValue); // Pass firstValue here
574
575
  } else {